Help for this page

Select Code to Download


  1. or download this
    my $temp = 'xxx$1';
    my $repl = eval q{"$temp"};
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    --output:--
    my $y = $x;
    
  3. or download this
    
    my $x = 10;
    ...
    --output:--
    Global symbol "$y" requires explicit package name at 2perl.pl line 14.
    Execution of 2perl.pl aborted due to compilation errors.
    
  4. or download this
    my $x = 10;
    eval {my $y = $x};
    ...
    --output:--
    Global symbol "$y" requires explicit package name at 2perl.pl line 14.
    Execution of 2perl.pl aborted due to compilation errors.