L
Lucas Van Hieng
This works:
my $a = 5;
*b = \$a;
$b is an alias to $a.
ok.
but why dont this work?
my @a = (1, 2, 3);
*b = \@a;
I get an error when I try to use @b i nany way:
Global symbol "@b" requires explicit package name
What gives?
I also tried *b{ARRAY} instead of *b but no change.
5.6.1
my $a = 5;
*b = \$a;
$b is an alias to $a.
ok.
but why dont this work?
my @a = (1, 2, 3);
*b = \@a;
I get an error when I try to use @b i nany way:
Global symbol "@b" requires explicit package name
What gives?
I also tried *b{ARRAY} instead of *b but no change.
5.6.1