my $arg = shift; if ($arg eq 'one') { do_stuff() } elsif ($arg eq 'two') { do_other_stuff() } elsif ($arg eq 'three') { do_even_more_other_stuff() } else { do_yet_even_more_other_stuff() }