Полезная информация


NAME

File::Spec::Unix - methods used by File::Spec


SYNOPSIS

require File::Spec::Unix;


DESCRIPTION

Methods for manipulating file specifications.


METHODS

canonpath

No physical check on the filesystem, but a logical cleanup of a path. On UNIX eliminated successive slashes and successive ``/.''.

catdir

Concatenate two or more directory names to form a complete path ending with a directory. But remove the trailing slash from the resulting string, because it doesn't look good, isn't necessary and confuses OS2. Of course, if this is the root directory, don't cut off the trailing slash :-)

catfile

Concatenate one or more directory names and a filename to form a complete path ending with a filename

curdir

Returns a string representing of the current directory. ``.'' on UNIX.

rootdir

Returns a string representing of the root directory. ``/'' on UNIX.

updir

Returns a string representing of the parent directory. ``..'' on UNIX.

no_upwards

Given a list of file names, strip out those that refer to a parent directory. (Does not strip symlinks, only '.', '..', and equivalents.)

file_name_is_absolute

Takes as argument a path and returns true, if it is an absolute path.

path

Takes no argument, returns the environment variable PATH as an array.

join

join is the same as catfile.

nativename

TBW.


SEE ALSO

Spec


DISCLAIMER

We are painfully aware that these documents may contain incorrect links and misformatted HTML. Such bugs lie in the automatic translation process that automatically created the hundreds and hundreds of separate documents that you find here. Please do not report link or formatting bugs, because we cannot fix per-document problems. The only bug reports that will help us are those that supply working patches to the installhtml or pod2html programs, or to the Pod::HTML module itself, for which I and the entire Perl community will shower you with thanks and praises.

If rather than formatting bugs, you encounter substantive content errors in these documents, such as mistakes in the explanations or code, please use the perlbug utility included with the Perl distribution.

--Tom Christiansen, Perl Documentation Compiler and Editor


Return to the Perl Documentation Index.
Return to the Perl Home Page.