Norton T. Allen [Wed, 3 Jun 1998 15:08:33 +0000 (11:08 -0400)]
Message-Id: <
199806031908.PAA04183@bottesini.harvard.edu>
p4raw-id: //depot/perl@1096
sub canonpath {
my($self,$path) = @_;
+ my $node = '';
+ if ( $^O eq 'qnx' && $path =~ s|^(//\d+)/|/| ) {
+ $node = $1;
+ }
$path =~ s|/+|/|g ; # xx////xx -> xx/xx
$path =~ s|(/\.)+/|/|g ; # xx/././xx -> xx/xx
$path =~ s|^(\./)+|| unless $path eq "./"; # ./xx -> xx
$path =~ s|/$|| unless $path eq "/"; # xx/ -> xx
- $path;
+ "$node$path";
}
=item catdir