Public Scratchpad | Download, Select Code To D/L |
my %functions = ( "setup" => { coderef => \&get_events, args => [\%formdata, $filelocation], }, );
Calling it thusly:
$functions{'setup'}->{coderef}->($functions{'setup'}->{args});
Public Scratchpad | Download, Select Code To D/L |
my %functions = ( "setup" => { coderef => \&get_events, args => [\%formdata, $filelocation], }, );
$functions{'setup'}->{coderef}->($functions{'setup'}->{args});