On Thu Jul 14 22:12:01 2011, andrew.pam@strategicdata.com.au wrote:
Show quoted text> In v1.116 the following line produces a false positive:
>
> say foreach grep { !eval "require $_" } @packages;
>
> Andrew
Thank you for your report.
After, I confess, a double take at your example, I realized it was
equivalent to something like
foreach ( @packages ) {
eval "require $_" and next;
say;
}
which passes this policy. So I have made 'grep' acceptable also (except
that there are surely some corner cases that got missed, especially
involving the form of 'grep' that has an expression rather than a block
as its first argument.
Committed as svn revision 4088.