12.8. More modules

use File::Spec;                       
$f = File::Spec->catfile('home', 'admin', 'project');    # fancy OOP style
print "$f\n";                           # home\admin\project on Windows
use File::Spec::Functions;              # build path based on current Os
$f = catfile('home', 'admin', 'project');
print "$f\n";                           # home/admin/project on Unix

If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed