Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

GOTO? No, but...

by The Alien (Sexton)
on Apr 20, 2000 at 23:04 UTC ( #8245=note: print w/ replies, xml ) Need Help??

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

I have never used goto in perl. I almost never used it in BASIC. But I did use GOSUB a lot. Naturally, I have used last and even next (and once, redo) in Perl. I do not see this as any kind of sin, because it can clarify things nicely. I do not see that a hideously complex loop condition is better than some internal flow control in all cases.
Of course, because of the nature of my work, others being able to grok my code easily is important. So I tend to write production code in a very 'natural languge' sort of format.

Comment on GOTO? No, but...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-11-26 09:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls