Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1097237]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-03-28 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (69 votes). Check out past polls.

    Notices?