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

Re: Access to hash ref element

by AnomalousMonk (Archbishop)
on May 28, 2013 at 19:12 UTC ( [id://1035687]=note: print w/replies, xml ) Need Help??


in reply to Access to hash ref element

... and if you want to interpolate it into a string before you print it, such scalar elements of arrays and hashes, however deeply nested or directly or indirectly referenced, interpolate like any other scalar:

>perl -wMstrict -le "my $data = [ {'name' => 'Mary'} ]; ;; print qq{---$data->[0]{name}---}; " ---Mary---

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-05-20 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found