source: main/trunk/greenstone2/perllib/cpan/URI/file/QNX.pm@ 27174

Last change on this file since 27174 was 27174, checked in by davidb, 11 years ago

Perl modules from CPAN that are used in supporting activate.pl, but not part of the Perl core. Only PMs included.

File size: 320 bytes
Line 
1package URI::file::QNX;
2
3require URI::file::Unix;
4@ISA=qw(URI::file::Unix);
5
6use strict;
7
8sub _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
181;
Note: See TracBrowser for help on using the repository browser.