in reply to creating 2D arrays
Your code:
should -- I think -- be written as:@results[$i][] = mult($a,@b[$i]);
or$results[$i] = [ mult($a, @b) ];
(Using @foo[$i] is generally incorrect.)@{ $results[$i] } = mult($a, @b);
_____________________________________________________
Jeff japhy Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|