SteveTheTechie has asked for the wisdom of the Perl Monks concerning the following question:
(My first post here.) I am trying to get a return value from a function called via a reference stored in a dispatch table. This should be easy, but I keep having problems with it. For the sake of discussion, the following is not working for me...
$RtnVal = $ActionSubsM{$FormCmd}->( $FORM{'meetingid'} );
The above will compile, but will not run correctly. If I take off the "$RtnVal =" so that I am not storing the return value, I get valid execution, but no return value then.
I have tried storing the reference from the dispatch table in a temporary and working off that, but that did not work either.
Any ideas what could be going on?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Return value from code reference stored in dispatch table
by davido (Cardinal) on Sep 01, 2013 at 03:25 UTC | |
|
Re: Return value from code reference stored in dispatch table
by hdb (Monsignor) on Sep 01, 2013 at 06:45 UTC | |
by SteveTheTechie (Novice) on Sep 03, 2013 at 05:44 UTC | |
by AnomalousMonk (Archbishop) on Sep 03, 2013 at 06:59 UTC | |
by hdb (Monsignor) on Sep 03, 2013 at 05:58 UTC | |
|
Re: Return value from code reference stored in dispatch table
by ig (Vicar) on Sep 05, 2013 at 03:45 UTC |