Help for this page

Select Code to Download


  1. or download this
    % perl -wle '1 unless 2 or (3 and 4) if (5 and 6)'
    syntax error at -e line 1, near ") if"
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    bar() if $foo;
    
  3. or download this
    if ( $foo ) {
      bar();
    }
    
  4. or download this
    bar() or baz() if $foo;
    
  5. or download this
    if ( $foo ) {
      unless ( bar() ) {
        baz();
      }
    }