in reply to Array refs problem ...
Update: Your use of 0+@$FieldOrder is very suspicious.
Update: You have an array slice in the top code (note the "@" in @Array1[ LIST ]), but you have an array lookup in the bottom code (note the "$" in $Row->{ Cells }[ SCALAR ])
The equivalent of
is@Array1[ LIST ] ^ |
@{ $array_ref }[ LIST ] ^ |
You want
@{ $Row->{ Cells } } = @{ $Row->{ Cells } }[ @$FieldOrder ];
See Dereferencing Syntax and References Quick Reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array refs problem ...
by Tharg (Scribe) on Jun 24, 2009 at 16:35 UTC | |
by ikegami (Patriarch) on Jun 24, 2009 at 17:44 UTC |