[Ruby] hint list
Dennis Vshivkov
walrus на amur.ru
Ср Сен 29 18:28:29 MSD 2004
On Wed, Sep 29, 2004 at 03:47:32PM +0300, Michael Shigorin wrote:
> http://www.zytrax.com/tech/lang/ruby/:
> This a collection of notes about the ruby language. Mostly about the
> stupid things that you get badly wrong, were confusing (to us) at the
> beginning, are obscure or just not IOHO adequately covered in the
> documentation.
Экие гунны эти чукчи-писатели. :)
> # this does NOT work - which surprised us
> myfile.grep.each (/me/) { |i| puts i+"<br />" }
:)
Кстати, сие есть враки:
> Simple reverse look-up:
>
> # returns a string
> print Resolv.getaddress("192.168.0.1")
> # gives error - to be investigated
Никакой ошибки нет, правда, это не reverse lookup, конечно. Нужен
Resolv.getname.
--
/Awesome Walrus <walrus на amur.ru>
...Когда гроза, мне легче дышать -- это факт...
Подробная информация о списке рассылки Ruby