in reply to Square the array values.
Somehow you have to loop through the array and modify the values in place with the exponentiation operator (or the multiplication operator). perlsyn describes most of the interesting parts in the section on "Foreach Loops".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Square the array values.
by kiruthika.bkite (Scribe) on Mar 18, 2010 at 09:10 UTC | |
by chromatic (Archbishop) on Mar 18, 2010 at 15:32 UTC |