From: Jeppe Jakobsen Date: 2006-02-13T06:50:02+09:00 Subject: newbie question about blocks ------=_Part_7884_19909102.1139780987476 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I want to square every element in my array using a block: a =3D (1..1000).to_a a.each {|x| x**2} But this does not seem to work, it just outputs my array completely unchanged :( -- "winners never quit, quitters never win" ------=_Part_7884_19909102.1139780987476--