From: Tom Pollard Date: 2007-03-12T22:59:14+09:00 Subject: Re: ruby 1.8.5p12: default IO object for gets() ? On Mar 12, 2007, at 9:09 AM, Roel Harbers wrote: > It might be a bit quirky, it took me by surprise too. However, it's > right there in the documentation. > [...]Is it going to be changed maybe? > > Not likely. Quite a lot of scripts use it to easily allow input from > either stdin or a file, without having to bother with opening files. It's a Perlism, another one of those little features that makes it easy to throw together a simple text processing script with very little boilerplate. Perl is full of them. Tom