Perl's chop / chomp considered bad, use a regexp instead
[openssl.git] / VMS / translatesyms.pl
index 8ffdbd8aa8ca8afa1b567a41345a29ee6948bf99..de3db6ccaf5cee6e56ebd6077c6f8f36bf64dbbf 100644 (file)
@@ -28,7 +28,7 @@ my %translations = ();
 open DEMANGLER_DATA, $ARGV[0]
     or die "Couldn't open $ARGV[0]: $!\n";
 while(<DEMANGLER_DATA>) {
-    chomp;
+    s|\R$||;
     (my $translated, my $original) = split /\$/;
     $translations{$original} = $translated.'$';
 }