1*0Sstevel@tonic-gatepackage File::Spec::Functions; 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gateuse File::Spec; 4*0Sstevel@tonic-gateuse strict; 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gateuse vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION); 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate$VERSION = '1.3'; 9*0Sstevel@tonic-gate 10*0Sstevel@tonic-gaterequire Exporter; 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate@ISA = qw(Exporter); 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gate@EXPORT = qw( 15*0Sstevel@tonic-gate canonpath 16*0Sstevel@tonic-gate catdir 17*0Sstevel@tonic-gate catfile 18*0Sstevel@tonic-gate curdir 19*0Sstevel@tonic-gate rootdir 20*0Sstevel@tonic-gate updir 21*0Sstevel@tonic-gate no_upwards 22*0Sstevel@tonic-gate file_name_is_absolute 23*0Sstevel@tonic-gate path 24*0Sstevel@tonic-gate); 25*0Sstevel@tonic-gate 26*0Sstevel@tonic-gate@EXPORT_OK = qw( 27*0Sstevel@tonic-gate devnull 28*0Sstevel@tonic-gate tmpdir 29*0Sstevel@tonic-gate splitpath 30*0Sstevel@tonic-gate splitdir 31*0Sstevel@tonic-gate catpath 32*0Sstevel@tonic-gate abs2rel 33*0Sstevel@tonic-gate rel2abs 34*0Sstevel@tonic-gate case_tolerant 35*0Sstevel@tonic-gate); 36*0Sstevel@tonic-gate 37*0Sstevel@tonic-gate%EXPORT_TAGS = ( ALL => [ @EXPORT_OK, @EXPORT ] ); 38*0Sstevel@tonic-gate 39*0Sstevel@tonic-gateforeach my $meth (@EXPORT, @EXPORT_OK) { 40*0Sstevel@tonic-gate my $sub = File::Spec->can($meth); 41*0Sstevel@tonic-gate no strict 'refs'; 42*0Sstevel@tonic-gate *{$meth} = sub {&$sub('File::Spec', @_)}; 43*0Sstevel@tonic-gate} 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate1; 47*0Sstevel@tonic-gate__END__ 48*0Sstevel@tonic-gate 49*0Sstevel@tonic-gate=head1 NAME 50*0Sstevel@tonic-gate 51*0Sstevel@tonic-gateFile::Spec::Functions - portably perform operations on file names 52*0Sstevel@tonic-gate 53*0Sstevel@tonic-gate=head1 SYNOPSIS 54*0Sstevel@tonic-gate 55*0Sstevel@tonic-gate use File::Spec::Functions; 56*0Sstevel@tonic-gate $x = catfile('a','b'); 57*0Sstevel@tonic-gate 58*0Sstevel@tonic-gate=head1 DESCRIPTION 59*0Sstevel@tonic-gate 60*0Sstevel@tonic-gateThis module exports convenience functions for all of the class methods 61*0Sstevel@tonic-gateprovided by File::Spec. 62*0Sstevel@tonic-gate 63*0Sstevel@tonic-gateFor a reference of available functions, please consult L<File::Spec::Unix>, 64*0Sstevel@tonic-gatewhich contains the entire set, and which is inherited by the modules for 65*0Sstevel@tonic-gateother platforms. For further information, please see L<File::Spec::Mac>, 66*0Sstevel@tonic-gateL<File::Spec::OS2>, L<File::Spec::Win32>, or L<File::Spec::VMS>. 67*0Sstevel@tonic-gate 68*0Sstevel@tonic-gate=head2 Exports 69*0Sstevel@tonic-gate 70*0Sstevel@tonic-gateThe following functions are exported by default. 71*0Sstevel@tonic-gate 72*0Sstevel@tonic-gate canonpath 73*0Sstevel@tonic-gate catdir 74*0Sstevel@tonic-gate catfile 75*0Sstevel@tonic-gate curdir 76*0Sstevel@tonic-gate rootdir 77*0Sstevel@tonic-gate updir 78*0Sstevel@tonic-gate no_upwards 79*0Sstevel@tonic-gate file_name_is_absolute 80*0Sstevel@tonic-gate path 81*0Sstevel@tonic-gate 82*0Sstevel@tonic-gate 83*0Sstevel@tonic-gateThe following functions are exported only by request. 84*0Sstevel@tonic-gate 85*0Sstevel@tonic-gate devnull 86*0Sstevel@tonic-gate tmpdir 87*0Sstevel@tonic-gate splitpath 88*0Sstevel@tonic-gate splitdir 89*0Sstevel@tonic-gate catpath 90*0Sstevel@tonic-gate abs2rel 91*0Sstevel@tonic-gate rel2abs 92*0Sstevel@tonic-gate case_tolerant 93*0Sstevel@tonic-gate 94*0Sstevel@tonic-gateAll the functions may be imported using the C<:ALL> tag. 95*0Sstevel@tonic-gate 96*0Sstevel@tonic-gate=head1 SEE ALSO 97*0Sstevel@tonic-gate 98*0Sstevel@tonic-gateFile::Spec, File::Spec::Unix, File::Spec::Mac, File::Spec::OS2, 99*0Sstevel@tonic-gateFile::Spec::Win32, File::Spec::VMS, ExtUtils::MakeMaker 100