Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RE: RE: RE: RE: Number of times I've used goto in Perl

by btrott (Parson)
on Apr 19, 2000 at 02:11 UTC ( #7977=note: print w/ replies, xml ) Need Help??


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

Point taken. :)

But in the case of Carp, my Carp.pm uses goto in the same magical way that it's used in AUTOLOAD:

goto &longmess;
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.

So you should let Carp.pm slide, too. :)

BTW, I like the perlfunc entry for goto:

goto - create spaghetti code


Comment on RE: RE: RE: RE: Number of times I've used goto in Perl
Select or Download Code
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
    OK, I'll let Carp slide as well. :) (Is this thread nested enough yet?)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://7977]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2015-07-03 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls