Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I was hoping to avoid a subroutine so I wouldn't have to worry about scoping and references. Maybe something like a goto? I don't know if that's barking up the wrong tree... Thanks in advance for your help, Anna anna@water.ca.govif condition1 { stmt1 stmt2 ... stmt30 } elsif condition2 { while innercondition1 { stmt1 stmt2 ... stmt30 } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: conditional loop
by sauoq (Abbot) on Aug 26, 2002 at 23:31 UTC | |
|
Re: conditional loop
by Aristotle (Chancellor) on Aug 27, 2002 at 00:40 UTC | |
|
Re: conditional loop
by BrowserUk (Patriarch) on Aug 26, 2002 at 23:33 UTC | |
|
Re: conditional loop
by Django (Pilgrim) on Aug 27, 2002 at 00:02 UTC | |
|
Re: conditional loop
by the pusher robot (Monk) on Aug 26, 2002 at 23:32 UTC | |
|
Re: conditional loop
by Anonymous Monk on Aug 27, 2002 at 22:01 UTC | |
by Aristotle (Chancellor) on Aug 27, 2002 at 22:06 UTC |