> and C<$cond> is defined *outside* the block. So if Larry were to allow
C<else>
> on loops, you'd be able to write:
> [snip]
> Given how rarely this kind of thing is actually needed (I've *never* used
such
> a construct), I suspect that an explicit variable is adequate.
I don't know if we're talking about the same thing, but I live using loops
that declare variables in the test, so please exegize me. Which of these
lines, if any, would cause a compiler error or warning?
while my $cond = blah() {
...
}
else {
print $cond;
}
print "The condition is: $cond\n";
If none then you're seriously rocking my world.
-Miko