Hello!

Is it possible to use $_, if you don't specify variable for a block?
So, if you happen to write

a=array(1,4,1,5)
a.each {
  puts
}

It will prints 1
4
1
5

Or this doecn't fits in ruby?

(The idea came from perl)


Gergo
+-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
|         Email: kgergely / mcl.hu,  kgergely / turul.eet.bme.hu          |
|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net