From: Joao Pedrosa Date: 2004-12-29T00:59:14+09:00 Subject: Re: Some methods don't work in WinXP? Hi, On Wed, 29 Dec 2004 00:51:48 +0900, Bob wrote: > Do some methods / functions not work in the WinXP implementation? > > The array sort do not seem to work. > > a=["b", "a", "d"] > > print a => bad > > a.sort You need a.sort! if you wish the elements in the array to be changed. In Ruby, the exclamation mark is used in the method if it changes something in its object. Or else, you can a = a.sort and recapture the sorted array. > > print a => bad > > (this is right out of the documentation!) > > and > > inline_string="yo" > > print "yada yada #(inline_string) yada yada " =>prints as "yada yada > #(inline_string) yada yada" not "yada yada yo yada yada" Instead of parentheses, you need {} (At the moment it does not occur to me how they are called in English.) > > What gives, I am missing a library or something? > I installed the windows one click installer. > Runing WinXp pro, Xitami webserver, > > thanks > bobc Cheers, Joao