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)?
producesgrep !defined, values %stats || last; my $swvn=grep !defined, values %stats; print $swvn; $swvn || last;
3 2 2 0so that means it doesn't work. The "fix" is to scalar() what grep() returns:
producesscalar(grep !defined, values %stats) || last; my $swvn=grep !defined, values %stats; print $swvn; $swvn || last;
3 2 2I'll check the memory consuption thing shortly.
|
|---|