In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Randy W. Sims) writes: >One example of a legitimate use of goto from perlsub: > > Many "AUTOLOAD" routines load in a definition for the > requested subroutine using eval(), then execute that sub- > routine using a special form of goto() that erases the > stack frame of the "AUTOLOAD" routine without a trace.
That is not the same kind of goto any more than exec {} is the same as exec "". That form of goto is expressed as "goto &subroutine" and I frequently use it. I've not used a goto LABEL construct since I was writing BASIC programs 20 years ago (unless you count assembler, which you shouldn't). -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>