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