You're assigning a refernce to an array into an array.
Ummm, no. He's assigning a list of references into an array.
#!/usr/bin/perl -l my @a = qw(a b c); my @b = \(@a); print "\@a contains: @a"; print "\@b contains: @b"; __END__ @a contains: a b c @b contains: SCALAR(0x811b15c) SCALAR(0x811b240) SCALAR(0x811b294)
What you are thinking of is [ LIST ].
In reply to Re: Re: SCALAR output instead of attribute name.
by !1
in thread SCALAR output instead of attribute name.
by sschneid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |