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

join all elements in array reference by hash

by johnko (Initiate)
on Dec 29, 2012 at 20:07 UTC ( #1010848=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        ...
        my @saved_verses = @verses;
        $bible{$book}{$chapter}{'verses'} = \@saved_verses;
        @verses = (); # use again for next chapter
    
  2. or download this
        my $n = 0;
        $bible{$bookname}{$chapter}{'verses'}[$n];
    ...
        join("\n\n",$bible{$bookname}{$chapter}{'verses'}[0..$#{$bible{"$b
    +ookname"}{"$chapter"}{'verses'}}]);
        join("\n\n",$bible{$bookname}{$chapter}{'verses'});
        # I get instead ARRAY(0x[0-9]*) or Argument "" isn't numeric in ar
    +ray element at ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-08-29 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls