use File::Spec;
$f = File::Spec->catfile('home', 'admin', 'project'); # fancy OOP style
print "$f\n"; # home\admin\project on Windowsuse File::Spec::Functions; # build path based on current Os
$f = catfile('home', 'admin', 'project');
print "$f\n"; # home/admin/project on Unix| Prev | Home (Copyright Gabor Szabo) Perl Training Israel | Next |
| More UNIX commands implemented in modules | Up | Change Copyright text in every source file in a directory hierarchy |