NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Yessir (Score:2)
The standard trick solution is to double-up the curlies, creating a block from which you can exit:
Uuuuugly. That's the price you pay for having trailing modifiers. In perl5 at least ...
--Nat
Re:Yessir (Score:1)
Thanks for the tip, yet I confess that this behavior violates the design principle of least astonishment. Perhaps I'm letting my Pascal heritage show a bit too much. The other wacky behavior is that the last jumps out of foo() back into bar(). I realize that next, last and redo are different spellings for goto. Still, I was surprised. In any case, I'm happy that someone had the foresight to recognize that this behavior might startle some users and to provide a warning to clue us in.
This is one of the dusty
Re:Yessir (Score:2)
Yes, it is surprising.
This is a legacy from Rift Valley Perl, I believe.
--Nat
Re:Yessir (Score:1)
Can someone please enlighten me what "Rift Valley Perl" is?
Reply to This
Parent
Re:Yessir (Score:2)
Yeah, I know, Dennis Miller's show was cancelled. Get a life, Torkington :-)
--Nat