Help for this page

Select Code to Download


  1. or download this
    @foo = ("initial");
    *bar = \@foo;
    $bar[0] = "final";
    print @foo;
    
  2. or download this
    my  @foo = ("initial");
    use strict;
    ...
    *bar = \@foo;
    $bar[0] = "final";
    print @foo;
    
  3. or download this
    package wombat;
    
    ...
                 # I could not control the scope of the typeglob