Help for this page

Select Code to Download


  1. or download this
    $\ = "\n";
    *t = sub{ print 42 }; *t = \'fred'; *t = [ 1,2,3];
    ...
        local *t = sub { print 'changed' };
        print join "\n", t(), $t, "@t";
    };
    
  2. or download this
    Possible unintended interpolation of @t in string at test.pl line 7.
    Use of uninitialized value in join or string at test.pl line 7.
    ...
    1
    
  3. or download this
    Possible unintended interpolation of @t in string at test.pl line 7.
    Subroutine main::t redefined at test.pl line 6.
    ...
    1
    fred
    1 2 3