![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: relative paths...by frozenwithjoy (Priest) |
on Aug 13, 2014 at 09:28 UTC ( #1097237=note: print w/replies, xml ) | Need Help?? |
Hi there. It's hard for me to tell exactly what you want with no code formatting, but let me recommend a few things. For converting absolute path to relative path, you should use something like abs2rel from File::Spec. For copying files, you should use copy/cp from File::Copy. Edit: Use of File::Spec or Path::Class will also make your paths much less prone to errors related to dealing with weird Windows backslashes.
In Section
Seekers of Perl Wisdom
|
|