Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: SCALAR output instead of attribute name.

by !1 (Hermit)
on Dec 18, 2003 at 19:23 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-24 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found