Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: How to determine absolute path of current Perl file?

by Corion (Patriarch)
on Feb 29, 2016 at 12:39 UTC ( [id://1156442]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to determine absolute path of current Perl file?
in thread How to determine absolute path of current Perl file?

Then don't change the directory or try to find the current directory at program start by using a BEGIN block.

Replies are listed 'Best First'.
Re^4: How to determine absolute path of current Perl file?
by FreeBeerReekingMonk (Deacon) on Feb 29, 2016 at 21:42 UTC
    Well, all you need to do is to make sure your PM is the first "required" in the list of modules... that should be enough to ensure correct cwd...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-28 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found