my $x = 0; if ($x == 1) { f(); } elsif ($x == 2) ( # $x==2 is the last expression evaluated. g(); }