Just curious: Are the
$containers{$con} = [ ] if !exists $containers{$con};
or
$containers{$con} = 0 if !exists $containers{$con};
statements strictly (or warnings-ly) necessary with your Perl version? They aren't with 5.8.9 and 5.14.4 — but they certainly do no harm in any case.
Give a man a fish: <%-(-(-(-<
In reply to Re^2: Count array element in HASH of ARRAYS
by AnomalousMonk
in thread Count array element in HASH of ARRAYS
by stm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |