Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Getting name of sub from a hash-based dispatch table?

by theguvnor (Chaplain)
on Jan 22, 2004 at 14:47 UTC ( #323195=note: print w/replies, xml ) Need Help??


in reply to Re: Getting name of sub from a hash-based dispatch table?
in thread Getting name of sub from a hash-based dispatch table?

Because then they would not be able to be called at all through the general dispatch. The problem isn't in hiding them from the dispatch; it's in hiding certain ones from a menu or help system so that the user is not presented with options that make no sense in a given context.

But as has already been noted by others, perhaps the best solution is to make the data structure for the dispatch table a little more complex/sophisticated so it can contain the public/private attribute.

[Jon]

  • Comment on Re: Re: Getting name of sub from a hash-based dispatch table?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2020-03-30 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (176 votes). Check out past polls.

    Notices?