/^qnx|nto$/ --> /^(?:qnx|nto)$/
authorPhilip Newton <pne@cpan.org>
Sun, 1 Jul 2001 09:37:56 +0000 (11:37 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 2 Jul 2001 12:48:03 +0000 (12:48 +0000)
Message-Id: <200107010733.KAA03925@taas.iki.fi>

p4raw-id: //depot/perl@11072

lib/ExtUtils/MM_Unix.pm
lib/File/Spec/Unix.pm

index 5e06b16..d9946e4 100644 (file)
@@ -84,7 +84,7 @@ sub canonpath {
     
     # Handle POSIX-style node names beginning with double slash
     my $node = '';
-    if ( $^O =~ m/^qnx|nto$/ && $path =~ s:^(//[^/]+)(/|\z):/:s ) {
+    if ( $^O =~ m/^(?:qnx|nto)$/ && $path =~ s:^(//[^/]+)(/|\z):/:s ) {
       $node = $1;
     }
     $path =~ s|(?<=[^/])/+|/|g ;                   # xx////xx  -> xx/xx
index bd4d77b..00899e7 100644 (file)
@@ -37,7 +37,7 @@ sub canonpath {
     
     # Handle POSIX-style node names beginning with double slash
     my $node = '';
-    if ( $^O =~ m/^qnx|nto$/ && $path =~ s:^(//[^/]+)(/|\z):/:s ) {
+    if ( $^O =~ m/^(?:qnx|nto)$/ && $path =~ s:^(//[^/]+)(/|\z):/:s ) {
       $node = $1;
     }
     $path =~ s|/+|/|g unless($^O eq 'cygwin');     # xx////xx  -> xx/xx