Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How to write a perl script to work on many OS(s)

by archfool (Monk)
on Jul 06, 2007 at 15:06 UTC ( [id://625279]=note: print w/replies, xml ) Need Help??


in reply to Re: How to write a perl script to work on many OS(s)
in thread How to write a perl script to work on many OS(s)

Forward slashes generally work in Perl MSWin32. There are a few corner cases where this doesn't work. ALSO... don't forget that windows shares need to start with two slashes... I believe File::Spec::canonpath will collapse them down to one, causing problems.
  • Comment on Re^2: How to write a perl script to work on many OS(s)

Replies are listed 'Best First'.
Re^3: How to write a perl script to work on many OS(s)
by swampyankee (Parson) on Jul 06, 2007 at 19:56 UTC

    Thanks; I wasn't aware of File::Spec::canonpath collapsing leading double slashes to one. I'll watch out for that in the future.

    emc

    Any New York City or Connecticut area jobs? I'm currently unemployed.

    There are some enterprises in which a careful disorderliness is the true method.

    —Herman Melville

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found