The '$_ if' is redundant since that is what grep does by default, return $_ if the clause is true. The following works the same way:
grep { $hash{$_} > 1 } sort keys %hashIn reply to Re^2: why use a hash instead of an array
by Lotus1
in thread why use a hash instead of an array
by DarrenSol
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |