It should be more readable to do it like this:
my %hFields; while ( $line =~ / \( (\d+) \* ([^)]+) \) /gx ) { $hFields{ $2 } += $1; }
In reply to Re^3: split snafus
by jwkrahn
in thread split snafus
by manav_gupta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |