blob: 53e8f4d010b2d318a838226c52cecb43bf4082ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package URI::file::QNX;
use strict;
use warnings;
use parent 'URI::file::Unix';
our $VERSION = '5.19';
sub _file_extract_path
{
my($class, $path) = @_;
# tidy path
$path =~ s,(.)//+,$1/,g; # ^// is correct
$path =~ s,(/\.)+/,/,g;
$path = "./$path" if $path =~ m,^[^:/]+:,,; # look like "scheme:"
$path;
}
1;
|