Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: canonpathChapter 8
Standard Modules
Next: Reference: catfile
 

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: canonpathPerl in a NutshellNext: Reference: catfile
Reference: canonpathBook IndexReference: catfile

Library Navigation Links

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