Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -e'if (my $x = 0) {} print $x,$/'
    Global symbol "$x" requires explicit package name at -e line 1.
    Execution of -e aborted due to compilation errors.
    $
    
  2. or download this
    $ perl -Mstrict -e'if (my $x = 0) {} elsif (1) { print $x,$/}'
    0
    $
    
  3. or download this
    $ perl -Mstrict -e'if ($\) {print $x,$/} elsif (my $x = 0) {} else { p
    +rint $x,$/}'
    Global symbol "$x" requires explicit package name at -e line 1.
    Execution of -e aborted due to compilation errors.
    $
    
  4. or download this
    $ perl -Mstrict -e'if ($\) {} elsif (my $x = 0) {} else { print $x,$/}
    +'
    0
    $