Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by LanX (Saint)
on May 06, 2018 at 21:57 UTC ( [id://1214128]=note: print w/replies, xml ) Need Help??


in reply to Number of times I've used goto in Perl

Many times!

Most languages are full of "gotos", they are just hidden behind other expressions like break or throw (yes exceptions are gotos, think about it)

The fact that most useful cases of flow control can be solved without goto doesn't mean all useful cases are covered.

It's like not giving heroine to a terminal cancer patient, because he could get addicted.

Don't let religion rule over logic.

Even if prophets like Wirth and Dijkstra preached against it.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Number of times I've used goto in Perl
by Anonymous Monk on May 07, 2018 at 08:17 UTC
    yes exceptions are gotos, think about it
    Some people even used to criticise exceptions by stating that they are like INTERCAL's COMEFROM.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found