On 2007/04/02, at 11:04, Jeff Pang wrote:
I am trying to group some common subroutines into a module. As I use both Win32 and *nix systems I wanted the the routines that use the file system to be able to work in both environments and handle paths like /var/path/to/dir and h:\home\dir equally well. I know that perl will treat h:/home the same as h:\home but I imagine that there is more to making a module portable than simply s!\/!\\! all paths.Hello,See "perldoc File::Basename",this is a Perl builtin module that would do what you required.
You have also to check File::Spec. It has functions to deal with those problems.
-- Igor Sutton [EMAIL PROTECTED]
PGP.sig
Description: This is a digitally signed message part