rovf has asked for the wisdom of the Perl Monks concerning the following question:
Why does Perl 5.8.8 complain "no" not allowed in expression in this program:
but not in this:use strict; use warnings; grep { no strict 'refs'; }qw(x);
?use strict; use warnings; grep { 0; no strict 'refs'; }qw(x);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pragma inside grep block
by moritz (Cardinal) on Jul 08, 2009 at 12:04 UTC | |
|
Re: Pragma inside grep block
by RMGir (Prior) on Jul 08, 2009 at 12:08 UTC | |
by Anonymous Monk on Jul 08, 2009 at 12:16 UTC |