tc1364 has asked for the wisdom of the Perl Monks concerning the following question:
while(<RPT>) { chop; if ($_ =~ s/^(\D+.*\d{4}\s+)(\D+.*)(\w{11})$/$1 $2 $3/ +) { $msg = $2; fmt_rpt($msg); $key = "$3"; if (exists($analysis{$key})) { $val .= "$msg"; } else { #$val = "$msg"; $analysis{$key} = "$val"; } } else { print "Program Error 2\n"; exit 1; }
20041119 Janitored by Corion: Fixed broken code tag
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash Trouble
by ikegami (Patriarch) on Nov 19, 2004 at 17:17 UTC | |
by tc1364 (Beadle) on Nov 19, 2004 at 18:04 UTC | |
by ikegami (Patriarch) on Nov 19, 2004 at 18:13 UTC | |
by tc1364 (Beadle) on Nov 19, 2004 at 18:55 UTC | |
by ikegami (Patriarch) on Nov 19, 2004 at 19:09 UTC |