On Thu, 6 Jan 2005, Randal L. Schwartz wrote:

> >>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes:
> 
> Chris> In Perl, the most common legit use of `goto` seems to be jumping out 
> of 
> Chris> loops,
> 
> Really?  Where have you even seen that?  I can show you an entire
> decade-spanning career of Perl programming where "goto" was never
> used to jump out of a loop.  In Perl, we use "last", etc.

Sorry, yes, "what he said".

What I meant was that the closest construct to a "goto" that I can think 
of is using "last" etc to jump out of a loop. It's not literally "goto", 
but the idea is similar.
 
> The "goto LABEL" in Perl is pessimized.  No effort is made to make it 
> work fast.  It exists mostly to allow the s2p translator to work. 
> *All* other uses are discouraged.

No argument here.
 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to