my $action = $cgi->param('action') || 'overview'; # main switch; see PBoard::Config for details if (exists $PBoard::Config::Actions{$action}->{subroutine}) {    $PBoard::Config::Actions{$action}->{subroutine}->($cgi, $action); } # if else { # execute default action; maybe replace it by errorhandling later    $PBoard::Config::Actions{'overview'}->{subroutine}->($cgi, 'overview'); } # else