Errno.pm suffers from \\ too
Ilya Zakharevich [Thu, 21 Jan 1999 02:46:34 +0000 (21:46 -0500)]
To: Mailing list Perl5 <perl5-porters@perl.org>
Message-ID: <19990121024634.A25600@monk.mps.ohio-state.edu>

p4raw-id: //depot/cfgperl@2663

ext/Errno/Errno_pm.PL

index 286dbc6..3df9881 100644 (file)
@@ -87,7 +87,16 @@ sub get_files {
            $pat = '^#(?:line)?\s*\d+\s+"([^"]+)"';
        }
        while(<CPPO>) {
-           $file{$1} = 1 if /$pat/o;
+           if ($^O eq 'os2') {
+               if (/$pat/o) {
+                  my $f = $1;
+                  $f =~ s,\\\\,/,g;
+                  $file{$f} = 1;
+               }
+           }
+           else {
+               $file{$1} = 1 if /$pat/o;
+           }
        }
        close(CPPO);
     }