Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Undefined Array Referenceby syphilis (Archbishop) |
on Apr 22, 2009 at 23:42 UTC ( [id://759437]=note: print w/replies, xml ) | Need Help?? |
In your for loop, $ref_b->[$i] doesn't exist for $i greater than 2. Consequently, as soon as $i == 3, you get the error you see. What do you want to push onto @{$ref_a->[$i]} when $i is 3, 4 or 5 ? Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|