Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Can't find relative path

by dasgar (Curate)
on Mar 24, 2012 at 20:42 UTC ( #961436=note: print w/ replies, xml ) Need Help??

in reply to Can't find relative path

I would recommend using the cwd function from the Cwd module, which will give you the current directory of script so long as your script isn't changing directories (i.e. system calls to cd). Then you can append the relative path of the file to the output of cwd. By doing so, you should then be able to move your script and folder structure to any folder and it should work as far as paths to files are concerned.

Comment on Re: Can't find relative path

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-11-28 19:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (744 votes), past polls