Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

file::spec::vms(3pm) [osx man page]

File::Spec::VMS(3pm)					 Perl Programmers Reference Guide				      File::Spec::VMS(3pm)

NAME
File::Spec::VMS - methods for VMS file specs SYNOPSIS
require File::Spec::VMS; # Done internally by File::Spec if needed DESCRIPTION
See File::Spec::Unix for a documentation of the methods provided there. This package overrides the implementation of these methods, not the semantics. The default behavior is to allow either VMS or Unix syntax on input and to return VMS syntax on output unless Unix syntax has been explicity requested via the "DECC$FILENAME_UNIX_REPORT" CRTL feature. canonpath (override) Removes redundant portions of file specifications and returns results in native syntax unless Unix filename reporting has been enabled. catdir (override) Concatenates a list of file specifications, and returns the result as a native directory specification unless the Unix filename reporting feature has been enabled. No check is made for "impossible" cases (e.g. elements other than the first being absolute filespecs). catfile (override) Concatenates a list of directory specifications with a filename specification to build a path. curdir (override) Returns a string representation of the current directory: '[]' or '.' devnull (override) Returns a string representation of the null device: '_NLA0:' or '/dev/null' rootdir (override) Returns a string representation of the root directory: 'SYS$DISK:[000000]' or '/' tmpdir (override) Returns a string representation of the first writable directory from the following list or '' if none are writable: /tmp if C<DECC$FILENAME_UNIX_REPORT> is enabled. sys$scratch: $ENV{TMPDIR} Since perl 5.8.0, if running under taint mode, and if $ENV{TMPDIR} is tainted, it is not used. updir (override) Returns a string representation of the parent directory: '[-]' or '..' case_tolerant (override) VMS file specification syntax is case-tolerant. path (override) Translate logical name DCL$PATH as a searchlist, rather than trying to "split" string value of $ENV{'PATH'}. file_name_is_absolute (override) Checks for VMS directory spec as well as Unix separators. splitpath (override) ($volume,$directories,$file) = File::Spec->splitpath( $path ); ($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file ); Passing a true value for $no_file indicates that the path being split only contains directory components, even on systems where you can usually (when not supporting a foreign syntax) tell the difference between directories and files at a glance. splitdir (override) Split a directory specification into the components. catpath (override) Construct a complete filespec. abs2rel (override) Attempt to convert an absolute file specification to a relative specification. rel2abs (override) Return an absolute file specification from a relative one. 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
See File::Spec and File::Spec::Unix. This package overrides the implementation of these methods, not the semantics. An explanation of VMS file specs can be found at <http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_014.html#apps_locating_naming_files>. perl v5.16.2 2012-10-11 File::Spec::VMS(3pm)

Check Out this Related Man Page

File::Spec::Win32(3pm)					 Perl Programmers Reference Guide				    File::Spec::Win32(3pm)

NAME
File::Spec::Win32 - methods for Win32 file specs SYNOPSIS
require File::Spec::Win32; # Done internally by File::Spec if needed DESCRIPTION
See File::Spec::Unix for a documentation of the methods provided there. This package overrides the implementation of these methods, not the semantics. devnull Returns a string representation of the null device. tmpdir Returns a string representation of the first existing directory from the following list: $ENV{TMPDIR} $ENV{TEMP} $ENV{TMP} SYS:/temp C:/temp /tmp / The SYS:/temp is preferred in Novell NetWare. Since Perl 5.8.0, if running under taint mode, and if the environment variables are tainted, they are not used. catfile Concatenate one or more directory names and a filename to form a complete path ending with a filename canonpath No physical check on the filesystem, but a logical cleanup of a path. On UNIX eliminated successive slashes and successive "/.". On Win32 makes dir1dir2dir3....dir4 -> dirdir4 and even dir1dir2dir3...dir4 -> dirdir4 splitpath ($volume,$directories,$file) = File::Spec->splitpath( $path ); ($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file ); Splits a path in to volume, directory, and filename portions. Assumes that the last file is a path unless the path ends in '\', '\.', '\..' or $no_file is true. On Win32 this means that $no_file true makes this return ( $volume, $path, undef ). Separators accepted are and /. Volumes can be drive letters or UNC sharenames (\servershare). The results can be passed to "catpath" to get back a path equivalent to (usually identical to) the original path. splitdir The opposite of catdir(). @dirs = File::Spec->splitdir( $directories ); $directories must be only the directory portion of the path on systems that have the concept of a volume or that have path syntax that differentiates files from directories. Unlike just splitting the directories on the separator, leading empty and trailing directory entries can be returned, because these are significant on some OSs. So, File::Spec->splitdir( "/a/b/c" ); Yields: ( '', 'a', 'b', '', 'c', '' ) catpath Takes volume, directory and file portions and returns an entire path. Under Unix, $volume is ignored, and this is just like catfile(). On other OSs, the $volume become significant. Note For File::Spec::Win32 Maintainers Novell NetWare inherits its File::Spec behaviour from File::Spec::Win32. SEE ALSO
File::Spec perl v5.8.0 2002-06-01 File::Spec::Win32(3pm)
Man Page