Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Paths in Perl

by Hanamaki (Chaplain)
on Sep 04, 2001 at 18:36 UTC ( #110044=note: print w/ replies, xml ) Need Help??


in reply to Paths in Perl

In Perl you can just use a  / as your path separator. Why? Because Perl with automagically convert the /to the correct path separator for the system it is running on!

Unfortunately this is not true for Perl on (classic) MacOS. On MacOS you can use / for manipulating @INC but not for other file pathes.
File::Spec which currently undergoes a major rewrite to handle MacPerl and VMS in a better way is for sure the way to go.
See also perlport

Hanamaki


Comment on Re: Paths in Perl
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-05 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls