Help for this page

Select Code to Download


  1. or download this
    package one;
    my $x= "hi";
    package two;
    print "$x\n";
    # prints "hi"
    
  2. or download this
    package one;
    our $x= "hi";
    ...
    print "$x\n"; # prints "hi"
    print "$y\n"; # prints nothing
    # and would give an error under C<use strict>