Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to write a perl script to work on many OS(s)by swampyankee (Parson) |
on Jul 06, 2007 at 04:58 UTC ( [id://625192]=note: print w/replies, xml ) | Need Help?? |
Use forward slashes (aka virgules). Generally, Perl will treat / as the path delimiter in Windows; see here. Quoting: "Since all DOS and Windows versions since something like MS-DOS 2.0 or so have treated / and \ the same in a path, you might as well use the one that doesn't clash with Perl--or the POSIX shell, ANSI C and C++, awk, Tcl, Java, or Python, just to mention a few. POSIX paths are more portable, too." (perlfaq5) Note that different shells have different quoting conventions, and different methods of determining when variable substitution should take place. 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.
In Section
Seekers of Perl Wisdom
|
|