Or:foreach (@CHOICE) { if ($_ && /.../) { ... } }
if all you have inside the foreach is the if statement.foreach (@CHOICE) { $_ or next; if (/.../) { ... } }
In reply to Re^2: An error message to understand
by Perl Mouse
in thread An error message to understand
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |