Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Full path to the current file?

by cLive ;-) (Parson)
on Jan 08, 2008 at 16:11 UTC ( #661119=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    
    print "This script is: ".abs_path($0)."\n";
    print "Working dir is: ".getcwd()."\n";
    
  2. or download this
    my $abs_filepath = abs_path("$module_dir/$relative_pilepath");
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2013-06-19 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (656 votes), past polls