Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Nested Dispatch Tables?

by chromatic (Archbishop)
on Mar 24, 2008 at 04:43 UTC ( [id://675853]=note: print w/replies, xml ) Need Help??


in reply to Nested Dispatch Tables?

I was wondering: is there a way to write nested dispatch tables, so that I can dispatch based on the type as well?

That sounds like polymorphism to me. Call a named method on a container instance or an object instance and Perl will dispatch to the appropriate method for you based on type.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-23 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found