home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / apache / files / ActivePerl-5.6.1.638-MSWin32-x86.msi / _a6d3c52a04f672b16b85e67eea3f4bb2 < prev    next >
Encoding:
Text File  |  2004-04-13  |  332 b   |  19 lines

  1. package URI::file::QNX;
  2.  
  3. require URI::file::Unix;
  4. @ISA=qw(URI::file::Unix);
  5.  
  6. use strict;
  7.  
  8. sub extract_path
  9. {
  10.     my($class, $path) = @_;
  11.     # tidy path
  12.     $path =~ s,(.)//+,$1/,g; # ^// is correct
  13.     $path =~ s,(/\.)+/,/,g;
  14.     $path = "./$path" if $path =~ m,^[^:/]+:,,; # look like "scheme:"
  15.     $path;
  16. }
  17.  
  18. 1;
  19.