Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012782]
help
Chatterbox?
[Corion]: Most likely Regexp::Debugger uses something in main:: ;)
[Corion]: Hmm - no, nothing jumps out immediately
Corion jumps into bed
[choroba]: On the indicated line, it uses (caller 1)10
[choroba]: (caller 1)[10] that is

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-09-25 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (291 votes). Check out past polls.

    Notices?