Perl: the Markov chain saw | |
PerlMonks |
Re: win32/unix compatible code questionby jsprat (Curate) |
on Dec 09, 2003 at 19:06 UTC ( [id://313487]=note: print w/replies, xml ) | Need Help?? |
Internally, perl and Windows understand '/' as the separator just fine. If you are using external programs or libraries, all bets are off - some will handle it, some won't. If you need to change the path separator based on underlying OS, File::Spec's catfile and catdir should help. It's a standard module, and its purpose is to "portably perform operations on file names". An example:
In Section
Seekers of Perl Wisdom
|
|