1File::Spec::VMS(3pm) Perl Programmers Reference Guide File::Spec::VMS(3pm)
2
3
4
6 File::Spec::VMS - methods for VMS file specs
7
9 require File::Spec::VMS; # Done internally by File::Spec if needed
10
12 See File::Spec::Unix for a documentation of the methods provided there.
13 This package overrides the implementation of these methods, not the
14 semantics.
15
16 The default behavior is to allow either VMS or Unix syntax on input and
17 to return VMS syntax on output, even when Unix syntax was given on
18 input.
19
20 When used with a Perl of version 5.10 or greater and a CRTL possessing
21 the relevant capabilities, override behavior depends on the CRTL
22 features "DECC$FILENAME_UNIX_REPORT" and "DECC$EFS_CHARSET". When the
23 "DECC$EFS_CHARSET" feature is enabled and the input parameters are
24 clearly in Unix syntax, the output will be in Unix syntax. If
25 "DECC$FILENAME_UNIX_REPORT" is enabled and the output syntax cannot be
26 determined from the input syntax, the output will be in Unix syntax.
27
28 canonpath (override)
29 Removes redundant portions of file specifications according to the
30 syntax detected.
31
32 catdir (override)
33 Concatenates a list of file specifications, and returns the result
34 as a directory specification. No check is made for "impossible"
35 cases (e.g. elements other than the first being absolute
36 filespecs).
37
38 catfile (override)
39 Concatenates a list of directory specifications with a filename
40 specification to build a path.
41
42 curdir (override)
43 Returns a string representation of the current directory: '[]' or
44 '.'
45
46 devnull (override)
47 Returns a string representation of the null device: '_NLA0:' or
48 '/dev/null'
49
50 rootdir (override)
51 Returns a string representation of the root directory:
52 'SYS$DISK:[000000]' or '/'
53
54 tmpdir (override)
55 Returns a string representation of the first writable directory
56 from the following list or '' if none are writable:
57
58 /tmp if C<DECC$FILENAME_UNIX_REPORT> is enabled.
59 sys$scratch:
60 $ENV{TMPDIR}
61
62 Since perl 5.8.0, if running under taint mode, and if $ENV{TMPDIR}
63 is tainted, it is not used.
64
65 updir (override)
66 Returns a string representation of the parent directory: '[-]' or
67 '..'
68
69 case_tolerant (override)
70 VMS file specification syntax is case-tolerant.
71
72 path (override)
73 Translate logical name DCL$PATH as a searchlist, rather than trying
74 to "split" string value of $ENV{'PATH'}.
75
76 file_name_is_absolute (override)
77 Checks for VMS directory spec as well as Unix separators.
78
79 splitpath (override)
80 ($volume,$directories,$file) = File::Spec->splitpath( $path );
81 ($volume,$directories,$file) = File::Spec->splitpath( $path, $no_file );
82
83 Passing a true value for $no_file indicates that the path being
84 split only contains directory components, even on systems where you
85 can usually (when not supporting a foreign syntax) tell the
86 difference between directories and files at a glance.
87
88 splitdir (override)
89 Split a directory specification into the components.
90
91 catpath (override)
92 Construct a complete filespec.
93
94 abs2rel (override)
95 Attempt to convert a file specification to a relative
96 specification. On a system with volumes, like VMS, this may not be
97 possible.
98
99 rel2abs (override)
100 Return an absolute file specification from a relative one.
101
103 Copyright (c) 2004 by the Perl 5 Porters. All rights reserved.
104
105 This program is free software; you can redistribute it and/or modify it
106 under the same terms as Perl itself.
107
109 See File::Spec and File::Spec::Unix. This package overrides the
110 implementation of these methods, not the semantics.
111
112 An explanation of VMS file specs can be found at
113 <http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_014.html#apps_locating_naming_files>.
114
115
116
117perl v5.12.4 2011-06-20 File::Spec::VMS(3pm)