linuxOS_AP05/debian/test/usr/share/perl5/URI/file/QNX.pm

21 lines
337 B
Perl
Raw Normal View History

2025-09-26 01:40:02 +00:00
package URI::file::QNX;
use strict;
use warnings;
use parent 'URI::file::Unix';
our $VERSION = '1.76';
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;