Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: SCALAR output instead of attribute name.

by !1 (Hermit)
on Dec 18, 2003 at 19:23 UTC ( #315622=note: print w/replies, xml ) Need Help??


in reply to Re: SCALAR output instead of attribute name.
in thread SCALAR output instead of attribute name.

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 ].

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315622]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2021-09-28 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?