File-Spec

File::Spec(3p) Perl Programmers Reference Guide File::Spec(3p)

File-Spec

File::Spec(3p) Perl Programmers Reference Guide File::Spec(3p) # File::Spec(3p) Perl Programmers Reference Guide File::Spec(3p) NNAAMMEE # File::Spec - portably perform operations on file names SSYYNNOOPPSSIISS # use File::Spec; $x=File::Spec->catfile('a', 'b', 'c'); which returns 'a/b/c' under Unix. Or: use File::Spec::Functions; $x = catfile('a', 'b', 'c'); DDEESSCCRRIIPPTTIIOONN # This module is designed to support operations commonly performed on file specifications (usually called "file names", but not to be confused with the contents of a file, or Perl's file handles), such as concatenating several directory and file names into a single path, or determining whether a path is rooted. ...