Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: join all elements in array reference by hash

by toolic (Bishop)
on Dec 29, 2012 at 20:15 UTC ( #1010849=note: print w/ replies, xml ) Need Help??


in reply to join all elements in array reference by hash

Did you try to dereference your array ref?

join("\n\n", @{ $bible{$bookname}{$chapter}{'verses'} });

Do you realize that you are discarding the string returned by join?

See also:


Comment on Re: join all elements in array reference by hash
Download Code
Re^2: join all elements in array reference by hash
by johnko (Initiate) on Dec 30, 2012 at 08:44 UTC
    I'll look at the perldsc. I had a print in front of the join before and had also tried to set it to a value, which I later printed. Had only included the snippet that I thought mattered. Thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2015-07-06 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls