Tharg has asked for the wisdom of the Perl Monks concerning the following question:
But with array references. My line looks like this :use strict; my(@Array1); my(@Array2); @Array1 = (0,1,'a',3,4,5,6); @Array2 = (2,4,6); @Array1 = @Array1[ ( @Array2 ) ]; printf STDOUT ("-->%s<--\n", join( ",", @Array1 ) );
But I'm getting 'Not an ARRAY reference' errors. Thanks in advance, and apologies for what is probably a basic question.@{ $Row->{ Cells } } = @{ $Row->{ Cells }[ ( @$FieldOrder ) ] };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array refs problem ...
by ikegami (Patriarch) on Jun 24, 2009 at 16:20 UTC | |
by Tharg (Scribe) on Jun 24, 2009 at 16:35 UTC | |
by ikegami (Patriarch) on Jun 24, 2009 at 17:44 UTC | |
|
Re: Array refs problem ...
by NetWallah (Canon) on Jun 24, 2009 at 19:58 UTC | |
|
Re: Array refs problem ...
by mscharrer (Hermit) on Jun 24, 2009 at 16:47 UTC |