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; }
In reply to Re^2: Hash Trouble
by tc1364
in thread Hash Trouble
by tc1364
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |