in reply to Re: Pragma inside grep block
in thread Pragma inside grep block

Workaround is to add ;
grep { ;no strict 'refs'; } qw(x);
but that confuse Deparse :D
perl -MO=Deparse use strict; use warnings; grep { ;no strict 'refs'; } qw(x); ^D use warnings; use strict 'refs'; grep {();} 'x'; - syntax OK
Also works
grep { do{ no strict 'refs'; } } qw(x)