bar() if my $foo;
is different from
my $foo if bar(); # don't do this!
The first case is equivalent to
just like howif (my $foo) { # $foo is lexically scoped to this block bar(); }
for my $foo (@foo) { # $foo is lexically scoped to this block baz(); }
So if ((my $start =~ /start/) .. (my $end =~ /end/)) is perfectly happy.
In reply to Re^4: Flipin good, or a total flop?
by chibiryuu
in thread Flipin good, or a total flop?
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |