summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl.straw/lib/URI/file/QNX.pm
blob: 93a4983d2bb62aaedf41cd25eefbc0ee5b14002f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package URI::file::QNX;

require URI::file::Unix;
@ISA=qw(URI::file::Unix);

use strict;

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;