good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Populating Arrays of Arraysby Tanktalus (Canon) |
on Mar 03, 2005 at 19:11 UTC ( [id://436335]=note: print w/replies, xml ) | Need Help?? |
You have: I'm zeroing in on this. What you probably want is: An array can only hold a scalar, even if that scalar is actually a ref to something else. In this case, I've made the scalar into a ref to an anonymous array. Note that you have way too many declarations up front. Try moving the "my" closer to where each variable is first used. This is Perl, not Pascal. Thanks.
In Section
Seekers of Perl Wisdom
|
|