Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re^3: Find the full path of the script at run time

by ibanix (Hermit)
on Mar 13, 2003 at 00:29 UTC ( [id://242553]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Spec::Functions qw(rel2abs);
    
    print "I am ", rel2abs($0), "\n";
    
  2. or download this
    use File::Spec::Functions qw(rel2abs splitpath catpath);
    
    ...
    my $path = catpath( $vol, $dirs, undef );
    
    print "I am ", $path, "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found