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

Re: Full path to the current file?

by cLive ;-) (Prior)
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?
[Discipulus]: ok.. where to look to serve a webpage composed by parts that fill themseves indipendently over time? no auto updates, just different times like (for a domain name) ip resolution, whois infos, lwp check ..

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-11-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (332 votes). Check out past polls.

    Notices?