Lines Matching defs:fileparse
5 fileparse - split a pathname into pieces
15 ($name,$path,$suffix) = fileparse($fullname,@suffixlist)
20 ($name,$path,$suffix) = fileparse("lib/File/Basename.pm",qr{\.pm});
39 fileparse(), basename(), and dirname(). If it contains none of
55 =item fileparse
57 The fileparse() routine divides a file specification into three
79 ($base,$path,$type) = fileparse('/virgil/aeneid/draft.book7',
90 ($name,$dir,$type) = fileparse('Doc_Root:[Help]Rhetoric.Rnh',
104 by calling fileparse() with the same arguments, except that it always
112 second element of the list produced by calling fileparse() with the same
117 is usually the same as the behavior of fileparse(), but differs in some
118 cases. For example, for the input file specification F<lib/>, fileparse()
144 @EXPORT = qw(fileparse fileparse_set_fstype basename dirname);
163 # fileparse() - parse file specification
168 sub fileparse {
172 Carp::croak("fileparse(): need a valid pathname");
233 # basename() - returns first element of list returned by fileparse()
237 (fileparse($name, map("\Q$_\E",@_)))[0];
245 # by fileparse() in that the trailing '/' (Unix) or '\' (MSDOS) (and
249 my($basename,$dirname) = fileparse($_[0]);
259 ($basename,$dirname) = fileparse $dirname;
266 ($basename,$dirname) = fileparse $dirname;
279 ($basename,$dirname) = fileparse $dirname;