On Thu Sep 25 02:10:57 2008, andrew@sericyb.com.au wrote:
Show quoted text> Code like this triggers a false positive:
>
> my @a = ( [ 1, 2 ], [ 3, 4 ] );
> print @$_[0] foreach @a;
I've committed a fix for this to:
http://perlcritic.tigris.org/svn/perlcritic/branches/rt39601
I assume that something like the following shouldn't be allowed:
my @a = ( [ 1, 2 ], [ 3, 4 ] );
for (@a){ say @$_[0]; }
but more because one should use a named variable in the for statement.
Either way, that is still a policy violation.