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

Re: ask about array and hash

by Malus (Acolyte)
on Jan 17, 2002 at 08:34 UTC ( [id://139441]=note: print w/replies, xml ) Need Help??


in reply to ask about array and hash

When you say:

print ${$entry->FTs->elements};

I think you meant to dereference it as an @rray and not as a $calar

For example:

getting the contents of a SCALAR reference: ${ $scalar_ref }

getting the contents of an ARRAY reference: @{ $array_ref }


If I understood the question, you meant this:
print @{$entry->FTs->elements};

Malus

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found