>>>>> "Zentara" == Zentara  <[EMAIL PROTECTED]> writes:

Zentara> When you use "last" to get out of a loop, it only takes you
Zentara> out of the loop you are in,

And this is just wrong.  You need to read "Learning Perl", because
two pages after we introduce "last", we talk about labeled loops.

Zentara>  but sometimes you need to go to the end of a block.

Yes, labeled loops are the right way to go.

Zentara> Like in this contrived example.

[bad goto example omitted]

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
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