my %functions = ( "setup" => { coderef => \&get_events, args => [\%formdata, $filelocation], }, );
[download]

Calling it thusly:

$functions{'setup'}->{coderef}->($functions{'setup'}->{args});
[download]