Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^5: perl array of hashes help

by trizen (Hermit)
on May 07, 2013 at 22:41 UTC ( #1032538=note: print w/replies, xml ) Need Help??

in reply to Re^4: perl array of hashes help
in thread perl array of hashes help

Hello Ragilla,

The code $all->{text}[0] is equivalent with $all->{text}->[0]. This implies an implicit dereference. Similar with $array_ref->[0].

In the second code, ${$all->{text}}[0] is similar with $array[0], because $all->{text} is an ARRAY REF, and @{ARRAY_REF} is similar with @array, which can lead to ${ARRAY_REF}[index].

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032538]
[shmem]: LanX can get the logs from cbstream at any time from me.
shmem relocates to the pub over the street. Have a nice time.
[LanX]: well .. not so much interested in reading this article
[LanX]: my 2 cents: AngloZionistic sounds like an antisemtic theory, but to be critical of zionism doesn't mean to be anti-semitic
[shmem]: it hasn't been coined as a *mustread* without authority from the promoter
erix shoots an anti-bubble missile towards LanX
[LanX]: I don't have the time to go into depth of this blog though
[LanX]: anti-bubble missile?
[shmem]: LanX, it's not a matter of time, and you know that.
[shmem]: be precise.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2018-03-19 21:35 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.