in reply to Re: sqrt string?
in thread Static typing is mostly a waste of time

You sure its not taking the sqrt of the memory address of the array?
$a = $b = ["abc",123]; print "\$a is $a\n"; $a =~ s/\D+//; print "The decimal value of the address of the array is ",hex($a); print "\n"; print sqrt(hex($a)),"==", sqrt($b),"\n";

Replies are listed 'Best First'.
Re^3: sqrt string?
by hardburn (Abbot) on Apr 12, 2005 at 16:34 UTC

    Ahh, yes. That is it.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.