http://www.perlmonks.org?node_id=341226


in reply to Re: Lexicals in if() scope gotcha!
in thread Lexicals in if() scope gotcha!

Out of curiosity, is the same true of while loops and foreach loops, where continue blocks might place the same constraints on lexicals as else blocks do for if constructs?


Dave

Replies are listed 'Best First'.
Re: Lexicals in if() scope gotcha!
by Abigail-II (Bishop) on Mar 31, 2004 at 08:14 UTC
    Yes.