Help for this page

Select Code to Download


  1. or download this
    $ perl -E '
        my @answers = qw{x y z};
    ...
    Total: 3
    Total: 3
    Total: 3
    
  2. or download this
    $ perl -E '
        #use strict;
    ...
    2
    3
    completely different $i
    
  3. or download this
    $ perl -E '
        use strict;
    ...
    '
    Global symbol "$i" requires explicit package name (did you forget to d
    +eclare "my $i"?) at -e line 9.
    Execution of -e aborted due to compilation errors.
    
  4. or download this
    $ perl -E '
        use strict;
    ...
    Global symbol "$i" requires explicit package name (did you forget to d
    +eclare "my $i"?) at -e line 5.
    Global symbol "$i" requires explicit package name (did you forget to d
    +eclare "my $i"?) at -e line 6.
    Execution of -e aborted due to compilation errors.
    
  5. or download this
    $ perl -E '
        use strict;
    ...
    2
    3
    undefined
    
  6. or download this
    $ perl -E '
        use strict;
    ...
    Global symbol "$i" requires explicit package name (did you forget to d
    +eclare "my $i"?) at -e line 5.
    Global symbol "$i" requires explicit package name (did you forget to d
    +eclare "my $i"?) at -e line 6.
    Execution of -e aborted due to compilation errors.
    
  7. or download this
    chomp $line;
    print $line, "\n";
    
  8. or download this
    print $line;