Melvin Smith wrote in perl6-language: >> >>Besides no one has commented on Steve Fink's (I think it was him) idea >>to store the result of the most recently executed conditional in $?. I >>kinda like that idea myself. It makes mnemonic sense. > > I like the $? idea, and it could probably be optimized away.
And $? should probably be automatically temporarized to the current block (a bit like $^H in Perl 5) : if foo() { if bar() { # $? is bar() here frob(); # let's call a function that may contain # if statements } # but $? is foo() here } (is "temporarized" the correct word, now that local() goes away?) -- Rafael Garcia-Suarez