Some people won't like this style. That's fine, you don't have to. Other will like it, and Perl let's you.sub next_foo { while (<>) { return $. if /^FOO:/ } } while (next_foo) { do_something # with $_ }
-- Abigail
In reply to Re: When is $_ local and when is it not?
by Abigail
in thread When is $_ local and when is it not?
by iakobski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |