Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Would you use 'goto' here?

by perrin (Chancellor)
on Dec 06, 2001 at 03:43 UTC ( #129806=note: print w/ replies, xml ) Need Help??


in reply to Would you use 'goto' here?

I can't see any reason to use goto rather than just calling another sub here. It makes sense in the AUTOLOAD case you mentioned because it helps hide something that is basically low-level magic. Here you just have a business rule about doing things one way if calling with certain params and a different way with others. I would certainly want to see that reflected in your strack traces and error messages!


Comment on Re: Would you use 'goto' here?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2014-07-10 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls