From f1ad96d87809f63f5c38822448683dd438aa35e1 Mon Sep 17 00:00:00 2001 From: mitty Date: Tue, 27 Mar 2012 20:50:38 +0000 Subject: [PATCH] * remove '; + +while (my $line = ) { + while ($line =~ /$startre/) { + $line =~ /^(.*?)$startre(.*)(\r?\n)$/; + if ($inscript == 0) { + print DEST "$1"; + } + $inscript++; + $line = "$2$3"; + } + + while ($line =~ /$endre/) { + $line =~ /^(.*?)$endre(.*)(\r?\n)$/; + if ($inscript <= 0) { + warn "$0: something wrong"; + } + $inscript--; + $line = "$2$3"; + } + + if ($line && $inscript <= 0) { + print DEST $line; + } +} -- 1.7.9.5