Grok three kinds of line endings, should fix [ID 20010612.003]
Jarkko Hietaniemi [Wed, 13 Jun 2001 01:25:12 +0000 (01:25 +0000)]
p4raw-id: //depot/perl@10550

pod/checkpods.PL

index 92b7ae6..692a706 100644 (file)
@@ -64,7 +64,7 @@ print OUT <<'!NO!SUBS!';
 
 $exit = $last_unempty = 0;
 while (<>) {
-    chomp;
+    s/(\012|\015\012|\015)$//;
     if (/^=(\S+)/ && $directive{$1} && $last_unempty) {
        printf "%s: line %5d, no blank line preceeding directive =%s\n",
                $ARGV, $., $1;