in reply to Populating Arrays of Arrays
You have:
I'm zeroing in on this. What you probably want is:#this line is problematic @$scalarclose[$count]=map {$_}, @ctagarray;
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.@$scalarclose[$count]=[map {$_}, @ctagarray];
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Populating Arrays of Arrays
by husker (Chaplain) on Mar 03, 2005 at 19:59 UTC | |
by Mugatu (Monk) on Mar 03, 2005 at 20:56 UTC |