functions.pm
来自「1. 记录每个帖子的访问人情况」· PM 代码 · 共 98 行
PM
98 行
package File::Spec::Functions;use File::Spec;use strict;use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION);$VERSION = '1.1';require Exporter;@ISA = qw(Exporter);@EXPORT = qw( canonpath catdir catfile curdir rootdir updir no_upwards file_name_is_absolute path);@EXPORT_OK = qw( devnull tmpdir splitpath splitdir catpath abs2rel rel2abs);%EXPORT_TAGS = ( ALL => [ @EXPORT_OK, @EXPORT ] );foreach my $meth (@EXPORT, @EXPORT_OK) { my $sub = File::Spec->can($meth); no strict 'refs'; *{$meth} = sub {&$sub('File::Spec', @_)};}1;__END__=head1 NAMEFile::Spec::Functions - portably perform operations on file names=head1 SYNOPSIS use File::Spec::Functions; $x = catfile('a','b');=head1 DESCRIPTIONThis module exports convenience functions for all of the class methodsprovided by File::Spec.For a reference of available functions, please consult L<File::Spec::Unix>,which contains the entire set, and which is inherited by the modules forother platforms. For further information, please see L<File::Spec::Mac>,L<File::Spec::OS2>, L<File::Spec::Win32>, or L<File::Spec::VMS>.=head2 ExportsThe following functions are exported by default. canonpath catdir catfile curdir rootdir updir no_upwards file_name_is_absolute pathThe following functions are exported only by request. devnull tmpdir splitpath splitdir catpath abs2rel rel2absAll the functions may be imported using the C<:ALL> tag.=head1 SEE ALSOFile::Spec, File::Spec::Unix, File::Spec::Mac, File::Spec::OS2,File::Spec::Win32, File::Spec::VMS, ExtUtils::MakeMaker
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?