Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi PerlMonks
##### sub mult { my ($a, @b) = @_; : : return @c; } ####
#### for $i (0..$N){ @results = mult($a,@b[$i]); } ####
#### for $i (0..$N){ @results[$i][] = mult($a,@b[$i]); } ####
Thanks
Damian
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating 2D arrays
by japhy (Canon) on Jul 24, 2001 at 20:42 UTC | |
|
Re: creating 2D arrays
by wine (Scribe) on Jul 24, 2001 at 20:45 UTC | |
by PrakashK (Pilgrim) on Jul 24, 2001 at 21:09 UTC | |
|
Re: creating 2D arrays
by PrakashK (Pilgrim) on Jul 24, 2001 at 21:18 UTC |