in reply to Re: Hash Trouble
in thread Hash Trouble
For me I would rather build one hash table instead of multiple hash tables and then merging them. To me it seems like a waste what are your thoughts?while(<RPT>) { chomp; if (/^(\D+.*\d{4}\s+)(\D+.*)(\w{11})$/) { $key = $3; $msg = $2; fmt_rpt($msg); if (exists($analysis{$key})) { $analysis{$key} .= $msg; } else { $val = $msg; $analysis{$key} = $val; } } else { print "Program Error 2\n"; exit 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hash Trouble
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 |