Hi!

I've noticed some bugs in ruby (I expect another results)

I tested it under Ruby172-4.exe (downloaded from thePragmaticProgrammer
page), winME

k='Hello'
[1,2,3].map {|k| k}
puts k

It prints 3 under ruby1!

Another one:

def a
  b=2
end

a()
puts b

prints 2

And the last (for today)
one,two='asdf'.split('-') # >> ['asdf']
a1,a2=''.split('-') # >> []

one='asdf' two=nil
a1=nil a2=nil

I don't see the point why split returns an empty array, when it has a
*VALID*, but empty input string. It should return an array returning one
empty element, so [''].
Opinions?

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