Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 perusing the Monastery: (14)
As of 2014-07-30 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (239 votes), past polls