in reply to
re-useing a hash
Localize the hash to your foreach loop (
%hash = ();
becomes
my %hash;
).
Remove the reference to your hash from
sub gather
completely.
Increment your hash counter like this instead:
$hash{$rule}++;
--isotope
Comment on
Re: re-useing a hash
In Section
Seekers of Perl Wisdom