Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Correct pathway to a file

by Anonymous Monk
on Jan 11, 2013 at 02:40 UTC ( #1012782=note: print w/replies, xml ) Need Help??

in reply to Correct pathway to a file

I want to be able to open any file in any directory without it having to be stored in the same place as my perl script

use absolute paths, use File::Find::Rule , use File::Spec->rel2abs

But I've said all this before

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2016-10-21 19:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.