From: Dave Thomas Date: 2001-07-09T02:07:47+09:00 Subject: [ruby-talk:17507] Re: Aliases for class methods "HarryO" writes: > In perl one can do things like > > open(DATA, ">> data") > > to open the file "data" for append. Similarly with "> file", "< file", > "+> file", "+< file" etc. > > As far as I know, this syntax isn't available in Ruby, f = File.open("wombat", "a") or f = File.open("wombat", File::APPEND, 0600) will do the same In general, translating Cookbook stuff to Ruby is quite difficult, because the organization of the cookbook is to some extent oriented around the Perl way of doing stuff. For an example, have a look at the slide starting at http://www.pragmaticprogrammer.com/talks/perlmongers/img45.htm Regards Dave