Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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));


Comment on Re: Determining the directory the running script is in
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2016-02-08 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (266 votes), past polls