in reply to RE: RE: RE: Number of times I've used goto in Perl
in thread Number of times I've used goto in Perl
But in the case of Carp, my Carp.pm uses goto in the same magical way that it's used in AUTOLOAD:
The purpose being that this magical goto erases the calling function from the call stack, which is exactly why it's used here: since longmess dumps out a stack trace, we don't want shortmess showing up in the call stack.goto &longmess;
So you should let Carp.pm slide, too. :)
BTW, I like the perlfunc entry for goto:
goto - create spaghetti code
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: RE: RE: RE: Number of times I've used goto in Perl
by turnstep (Parson) on Apr 19, 2000 at 02:51 UTC |