for my $t ( $test ) { doWith($t) if check($t); }
avoids $_ completely. Clearly not worth it if your variable is actually just $test.
- tye
In reply to Re: variable processing and checking in one statement (for my)
by tye
in thread variable processing and checking in one statement
by saunderson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |