Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Access to hash ref element

by AnomalousMonk (Canon)
on May 28, 2013 at 19:12 UTC ( #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---

Comment on Re: Access to hash ref element
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-11-25 11:24 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (674 votes), past polls