Saved has asked for the wisdom of the Perl Monks concerning the following question:
But It's not working. Any help would be much appreciated. Thanx. Implementing Dispatch Tables The trivial case A basic dispatch table might look like this: my %disp_table = ( something => \&do_something ); download You put a string in, you get a code ref out. Then, presumably, you execute the code ref: $disp_table{'something'}->(); download What could be simpler?$Content= $actions{$RFlds[3]}->($EnvName);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dispatch table with parameter
by rjt (Curate) on Jun 03, 2013 at 14:41 UTC | |
|
Re: Dispatch table with parameter
by tobyink (Canon) on Jun 03, 2013 at 14:44 UTC | |
by Saved (Beadle) on Jun 03, 2013 at 16:58 UTC |