Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
doesn't work (it takes @foo in a scalar context, whereas I want it to still be an array). I've tried using various combinations of [] and () with no success. Any thoughts?my $rows = []; my $cols = []; my $results = []; my $table = [$rows, $cols, $results]; ...snip... $table->[$row][$col] = @foo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A Matrix of Arrays
by dvergin (Monsignor) on Feb 17, 2002 at 01:09 UTC | |
|
Re: A Matrix of Arrays
by Zaxo (Archbishop) on Feb 17, 2002 at 00:52 UTC | |
|
Re: A Matrix of Arrays
by theorbtwo (Prior) on Feb 17, 2002 at 00:51 UTC | |
|
Re: A Matrix of Arrays
by Anonymous Monk on Feb 17, 2002 at 00:47 UTC |