Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Portable creation of paths

by IlyaM (Parson)
on Nov 28, 2001 at 21:07 UTC ( [id://128101]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: {3} Using Variables in Path Names
in thread Using Variables in Path Names

My 0.02.

I don't like both variants. They are not portable. It is better to use File::Spec for operations on filenames:

use File::Spec; my $dir = File::Spec->catdir($HOME, $first, $second);

Log In?
Username:
Password:

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

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

    No recent polls found