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

Re: Cross platform compatability Part 1: Shells and Files

by ichimunki (Priest)
on Jan 21, 2001 at 20:14 UTC ( [id://53337]=note: print w/replies, xml ) Need Help??


in reply to Cross platform compatability Part 1: Shells and Files

I've been under the impression that any decent port of Perl worked with / as a directory delimiter, no matter what the OS considered it to be.

If you want to be hardcore, you could store all pathnames using File::Basename and extract a filesystem specific string for FS calls.

  • Comment on Re: Cross platform compatability Part 1: Shells and Files

Replies are listed 'Best First'.
Re: Re: Cross platform compatability Part 1: Shells and Files
by jepri (Parson) on Jan 21, 2001 at 20:34 UTC
    Yes, you are quite correct. However my point wasn't to start up a new module war, just to point out how with a few smallish changes that are pretty much good programming practise anyway, that code can made cross-platform. I felt that saying someone should go and learn Yet Another Module would be a bit too much (does anyone else dread the task of reading through the docs for all modules related to a task, then trialling them all to see which ones work well?)

    Update: chipmunk pointed out that '/' is not a directory separator for every good port - the Mac does things differently.

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-26 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found