Help for this page

Select Code to Download


  1. or download this
    my $x = 1;
    if ($x) {
    ...
    } else {
       g();
    }
    
  2. or download this
    my $x = 0;
    if ($x) {
    ...
    } else {
       g();      # g() is the last expression evaluated.
    }
    
  3. or download this
    my $x = 0;
    if ($x) {    # $x is the last expression evaluated.
       f();
    }
    
  4. or download this
    my $x = 0;
    if ($x == 1) {
    ...
    } elsif ($x == 2) (    # $x==2 is the last expression evaluated.
       g();
    }