NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
File::Spec (Score:2)
Re:File::Spec (Score:1)
The problem is that File::Spec ridigly describes the path format for one system. If you specify an Win32 system, no other system will work.
Thanks to muttley [perl.org] I now use the following:
And that seems to work a treat.
Re:File::Spec (Score:2)
I was just responding to the perceived "I need to parse a filename from another type of filesystem" need.
Re:File::Spec (Score:1)
Admittedly for the majority of our purposes it will be there, but there are those few cases when it could pose a problem. At least with the way muttley suggested we now cover a bigger majority of platforms that will be accessing our systems. If we could cover Macs too, then I think we'd have the lot.
Reply to This
Parent
Re:File::Spec (Score:2)
Does CGI.pm handle file uploading in a cross-platform way? I'm suggesting, but I've never tried it myself.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers