Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Passing parameters to object method references

by rhesa (Vicar)
on Jun 21, 2007 at 10:47 UTC ( #622532=note: print w/replies, xml ) Need Help??


in reply to Passing parameters to object method references

Your subs in the dispatch table need to accept parameters:
dispatch => { A => sub { $self->suba(@_) }, B => sub { $self->subb(@_) }, }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2021-03-03 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (92 votes). Check out past polls.

    Notices?