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