my $cmd = $cmds{$ARGV[0]}; # get the coderef &$cmd(); # call it