in reply to Re: Code review
in thread Code review
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Code review
by choroba (Cardinal) on Mar 06, 2024 at 16:43 UTC |