Then output would have been like so:... else { push @{ $bible{$book}{$chapter}{'verses'} }, $_; }
which ofcourse is cool and probably faster [ not tested though ]. But I thought, what if we decides to refer to each of the verses?"Genesis" => { "chapter 1" => { verses => [ "1 In the beginning God created the heavens and + the earth.", "2 The earth was without form, and void; and da +rkness was on the face of the deep. And the Spirit of God was hoverin +g over the face of the waters.", ], }, "chapter 2" => { verses => [ "1 Thus the heavens and the earth, and all the +host of them, were finished. ", "2 And on the seventh day God ended His work wh +ich He had done, and He rested on the seventh day from all His work w +hich He had done.", ], }, },
In reply to Re^3: join all elements in array reference by hash
by 2teez
in thread join all elements in array reference by hash
by johnko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |