sandorado has asked for the wisdom of the Perl Monks concerning the following question:
--> but here is the Problem. Outside of the Loop, there is only the last hash-element left. I hope someone can help me and explain me whats the error. regardsforeach my $node ($nodeset->get_nodelist) { #this line below is just for checking, what can be found within +the nodelist my $a = $node->getAttribute('a'); my $b = $node->getAttribute('b'); my $c= $node->getAttribute('c'); if((defined $a) && (defined $b) && (defined $c)) { @arr_a = split (/ /, $a); @arr_b = split (/ /, $b); @arr_c = split (/ /, $c); }else{ print "Warning! \n"; } %complete =( @arr_a=>[@arr_b, @arr_c], ); } print Dumper %complete;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Multidimensional Hash losts entrys
by choroba (Cardinal) on Aug 13, 2014 at 13:26 UTC | |
by Anonymous Monk on Aug 14, 2014 at 05:23 UTC | |
Re: Multidimensional Hash losts entrys
by cdarke (Prior) on Aug 13, 2014 at 13:22 UTC |