Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How to get a file's full path?

by bart (Canon)
on Aug 14, 2005 at 11:17 UTC ( [id://483678]=note: print w/replies, xml ) Need Help??


in reply to Re: How to get a file's full path?
in thread How to get a file's full path?

Try File::Spec, namely its rel2abs() function:
It's not a function, it's a class method. If you want a function — and I can understand that, try File::Spec::Functions (also standard) instead.
use File::Spec::Functions qw(rel2abs); $abs_path = rel2abs( $path );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found