home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


catdir


File::Spec->catdir(


dir

[, 

dir

...]
)

Concatenates two or more directory names to form a complete path. Ends with a directory name and appends a trailing : if there isn't one. You can get a relative path by either beginning the first argument with : or putting "" as the first argument.


Previous: Reference: canonpath Perl in a Nutshell Next: Reference: catfile
Reference: canonpath Book Index Reference: catfile

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.