![]() |
|
P is for Practical | |
PerlMonks |
File::Specby tye (Sage) |
on Sep 13, 2000 at 23:35 UTC ( #32335=modulereview: print w/replies, xml ) | Need Help?? |
Item Description: Portable ways to manipulate file specifications Review Synopsis: Please try to use this module even when you don't need it
File::Spec is the long-awaited standard method for doing common tasks with file names and paths (file specifications or file specs) in a way that is portable between different operating systems. The GoodWhat it can do:
The BadThe documentation isn't OS-independent so you have to read the documentation for each OS-specific component of File::Spec. Start with perldoc File::Spec then perldoc File::Spec::Unix (since that part of the module is the most complete). Not all methods are available on all platforms. This module isn't available for even slightly old versions of Perl. Until and unless that changes, you may want to back-port the functionality to older versions of Perl yourself so that your code will still port to different OSes. The UglyGetting File::Spec functionality for old versions of Perl in a portable, robust manner. I hope to add more details on this later. - tye (but my friends call me "Tye")
|
|