Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
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 meditating upon the Monastery: (7)
As of 2020-09-29 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (146 votes). Check out past polls.

    Notices?