Ugly but quite short code:
while (<>) { next unless /CUSTOMER/; my $count = (<>, <>); # WTF s/^\s+//, s/\s+$// for $_, $count; print "$_ -> $count\n"; }
In reply to Re: Parsing a Simple Log File
by ccn
in thread Parsing a Simple Log File
by bichonfrise74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |