Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

File::Spec::Functions

Perl 5 version 10.1 documentation
Recently read

File::Spec::Functions

NAME

File::Spec::Functions - portably perform operations on file names

SYNOPSIS

  1. use File::Spec::Functions;
  2. $x = catfile('a','b');

DESCRIPTION

This module exports convenience functions for all of the class methods provided by File::Spec.

For a reference of available functions, please consult File::Spec::Unix, which contains the entire set, and which is inherited by the modules for other platforms. For further information, please see File::Spec::Mac, File::Spec::OS2, File::Spec::Win32, or File::Spec::VMS.

Exports

The following functions are exported by default.

  1. canonpath
  2. catdir
  3. catfile
  4. curdir
  5. rootdir
  6. updir
  7. no_upwards
  8. file_name_is_absolute
  9. path

The following functions are exported only by request.

  1. devnull
  2. tmpdir
  3. splitpath
  4. splitdir
  5. catpath
  6. abs2rel
  7. rel2abs
  8. case_tolerant

All the functions may be imported using the :ALL tag.

COPYRIGHT

Copyright (c) 2004 by the Perl 5 Porters. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

File::Spec, File::Spec::Unix, File::Spec::Mac, File::Spec::OS2, File::Spec::Win32, File::Spec::VMS, ExtUtils::MakeMaker