>> k='Hello'
>> [1,2,3].map {|k| k}
>> puts k
>> 
>> It prints 3 under ruby1!
>
>Yes, using block argument equals to assignment to it.

But shouldn't it be local to the block? It may cause nice errors...
If it is available outside the block, it is a Bad Idea(tm).

>''.split('-', -1) # => ['']

Ok, but is it a trailing null? (doc is not very correct (ok, rather old
doc 0.3))
In my opinion split should return at least ONE real string.

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