Help for this page

Select Code to Download


  1. or download this
    use strict;     #<--****
    use warnings;     #<---***
    
  2. or download this
    $main::x = 10;
    print $main::x, "\n";  #10
    
  3. or download this
    
    use vars qw{$x};
    print $x, "\n";  #10
    
  4. or download this
    # $y = 'hello';  #error under use strict
    our $y = 'hello';
    print $y, "\n";  #hello
    
  5. or download this
    {
        our $z = 5;
    ...
    
    print $s, "\n";  #bye