Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Subroutines in Dispatch Tables

by rcaputo (Chaplain)
on Sep 22, 2009 at 22:14 UTC ( [id://796831]=note: print w/replies, xml ) Need Help??


in reply to Subroutines in Dispatch Tables

Your error is in the action => &hello_me( @_ ) part. You should be taking a reference to hello_me() there instead of calling it:

action => \&hello_me,
Then $dispatch_tables[1]->{action}->( "1", "2" ) should work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found