Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: How to determine absolute path of current Perl file?

by Discipulus (Canon)
on Feb 29, 2016 at 12:52 UTC ( [id://1156444]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $origin = File::Spec->file_name_is_absolute($0) ? $0 : File::Spec->
    +rel2abs($0) ;
    ...
            (chdir $path and print "OK chdir to $path\n")|| die "FATAL una
    +ble to change directory to '$path'.";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found