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
    You're right, my bad.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]