Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Determining the directory the running script is in

by Corion (Pope)
on Jun 26, 2007 at 16:35 UTC ( #623452=note: print w/replies, xml ) Need Help??


in reply to Determining the directory the running script is in

How about

use File::Basename 'dirname'; use Cwd 'abs_path'; my $script_dir = abs_path(dirname($0));

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://623452]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2016-12-09 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (156 votes). Check out past polls.