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

Chris>  though I wouldn't put it past a clever hacker to do something
Chris> useful with it in some other context, if s/he knew what they
Chris> were doing.  On the whole though, it seems worth avoiding if it
Chris> all possible.

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.

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