From: Russ Cox Date: Mon, 13 Jul 2009 01:56:00 +0000 (-0700) Subject: strip //DOC comments during printing X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=4ed996f552cac7fc6e9713355bdd36e303c76b72;p=cs3210-lab0.git strip //DOC comments during printing --- diff --git a/runoff1 b/runoff1 index ba42e8f..44fdcbe 100755 --- a/runoff1 +++ b/runoff1 @@ -19,6 +19,7 @@ $linenum = 0; foreach (@lines) { $linenum++; chomp; + s!//DOC.*!!; s/\s+$//; if(length() >= 75){ print STDERR "$file:$linenum: line too long\n";