Help for this page

Select Code to Download


  1. or download this
    for (1 .. 4) {
        if ($_ % 2) {print "odd"}   # Assume 'once only blocks'
        else {print "even"}
    }
    
  2. or download this
        {
            FIRST {
                ...
            }
        }
    
  3. or download this
        my $flag = 1;
        ...
    ...
            $flag = 0;
            ...
        }