Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by FreeBeerReekingMonk (Deacon)
on Feb 29, 2016 at 21:48 UTC ( [id://1156483]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    My::Module::print_caller_name();
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    
    1;
    
  3. or download this
    warn "ALERT ALERT ALERT" unless(-f "$_PATH/$_SCRIPT");
    

Log In?
Username:
Password:

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

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

    No recent polls found