home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / perl5 / URI / file / QNX.pm < prev    next >
Encoding:
Perl POD Document  |  2004-09-07  |  320 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 _file_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.