Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Perl style question: loops with postconditionby erikharrison (Deacon) |
on Jun 28, 2002 at 16:11 UTC ( [id://178050]=note: print w/replies, xml ) | Need Help?? |
YES! Mostly, we have goto LABEL and goto EXPR for the sake of completeness. People expect them to be there, and there they are. This is useful. But much more importantly, goto can be used to eliminate / substitute one subroutine call for another. For example, suppose you have a subroutine which uses caller. Now, what if that sub is called by and AUTOLOAD in the same package. You've borked your caller. But, if you goto to the subroutine, then even caller can't figure out that AUTOLOAD itercepted the call. Cheers,Erik Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet
In Section
Seekers of Perl Wisdom
|
|