Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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?
NodeReaper . o O ( Did I forget to leave the gas on? )

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-12-18 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (466 votes). Check out past polls.

    Notices?