$Y{$y} += (grep $y eq $_, @ARGV) || 1;In the OP, it looks like if @ARGV is true but no $y matches $_ then $Y{$y} should not be incremented. But the above code will increment it.
In reply to Re^2: Code review
by Danny
in thread Code review
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |