Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
"be consistent"
 
PerlMonks  

Re: Paths in Perl

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://110044]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.