>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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/