Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Could somebody please explain to me the difference in the output between the two print lines above?my @aaa = qw (11 22 33); my @bbb = qw (44 55 66); my @ccc = qw (77 88 99); my @masterarray = \(@aaa, @bbb, @ccc); # This doesn't work, appears to print a REF print \$_ . "\n" for @masterarray; # This also doesn't work, appears to print an ARRAY print $_ . "\n" for @masterarray;
Thanks in advance,@aaa @bbb @ccc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printing array item reference names
by ambrus (Abbot) on Jan 14, 2005 at 12:17 UTC | |
|
Re: printing array item reference names
by Joost (Canon) on Jan 14, 2005 at 12:01 UTC | |
|
Re: printing array item reference names
by Random_Walk (Prior) on Jan 14, 2005 at 12:02 UTC | |
|
Re: printing array item reference names
by ambrus (Abbot) on Jan 14, 2005 at 12:03 UTC |