http://qs321.pair.com?node_id=1097237


in reply to relative paths...

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.