Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Is modifying the symbol table to redefine subroutines evil?

by perrin (Chancellor)
on Apr 12, 2007 at 18:29 UTC ( #609721=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Is modifying the symbol table to redefine subroutines evil?
in thread Is modifying the symbol table to redefine subroutines evil?

Now that you mention it, I usually handle this kind of bail-out conditional with a simple test at the top:

return if $foo_has_been_called;
Then you don't have to indent the whole rest of the sub.


Comment on Re^3: Is modifying the symbol table to redefine subroutines evil?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2015-03-06 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (161 votes), past polls