in reply to Square the array values.

For completeness:

@a = 1..10;; $_ **= 2 for @a;; print @a;; 1 4 9 16 25 36 49 64 81 100

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^2: Square the array values.
by Anonymous Monk on Mar 18, 2010 at 11:39 UTC
    Thanks to all..