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

Re: a sub within a sub -- revisiting

by PeterPeiGuo (Hermit)
on Apr 10, 2010 at 05:29 UTC ( [id://833952]=note: print w/replies, xml ) Need Help??


in reply to a sub within a sub -- revisiting

Good code is usually straight forward, and this code is misleading in couple of ways:

  1. Visually, bar seems to be only available inside foo. But that's not true, bar can actually be called outside of foo.
  2. Make it even worse, when bar is called outside of foo, it does not do what's expected any more.

Peter (Guo) Pei

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found