in reply to Re^2: How best to tell when my hash is "full" (all values defined)?
in thread How best to tell when my hash is "full" (all values defined)?

Hi,
grep !defined, values %stats || last; my $swvn=grep !defined, values %stats; print $swvn; $swvn || last;
produces
3
2
2
0
so that means it doesn't work. The "fix" is to scalar() what grep() returns:
scalar(grep !defined, values %stats) || last; my $swvn=grep !defined, values %stats; print $swvn; $swvn || last;
produces
3
2
2
I'll check the memory consuption thing shortly.

I like computer programming because it's like Legos for the mind.