Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: GOTO or not GOTO

by KurtZ (Friar)
on Jan 27, 2009 at 10:33 UTC ( [id://739142]=note: print w/replies, xml ) Need Help??


in reply to Re: GOTO or not GOTO
in thread GOTO or not GOTO

There is almost never a need to use goto in modern programming languages

Right, but especially in Perl there are some cases where you can't get around goto, e.g. in AUTOLOAD!

Replies are listed 'Best First'.
Re^3: GOTO or not GOTO
by GrandFather (Saint) on Jan 27, 2009 at 11:07 UTC

    Well, it's called goto, but that's a little misleading. In many ways the use (often found in the context of AUTOLOAD) that you allude to is more akin to a magical call to a subroutine than to the conventional use of goto suggested by the OP.


    Perl's payment curve coincides with its learning curve.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found