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:
Then $dispatch_tables[1]->{action}->( "1", "2" ) should work.action => \&hello_me,
|
|---|