From: David Garamond Date: 2003-12-01T13:29:00+09:00 Subject: Re: anything disappearing from Ruby for 2.0? Josef 'Jupp' SCHUGT wrote: > I cannot see anything that requires one-liners besides showing off. > They are not even fun in most cases. I find the ability to write one-liners _amazingly_ useful. Perhaps you don't use shell/command-line interface much. But many, many Unix/Linux users do most of their stuffs in shell daily. And using a combination of Unix commands sometimes are just not powerful/easy/portable enough. I use Perl & Ruby one-liners for all things, from renaming a bunch of files according to some string/regex operation (e.g. changing all ".tar.gz" to ".tgz"), manipulating file contents (e.g. neutralizing "evil" HTML pages), downloading recursively but with some complex rules that wget can't do, etc. Btw, I even have a text file where I store hundreds of Perl & Ruby one-liners which I can just copy paste to the shell window whenever I needs them. It beats having hundreds of script files which I don't know how to name properly. > Matz pointed out that he also wants to remove the "require "English"' > equivalents. This one I agree. Nobody in the world seems to use 'require "English"' in Ruby or 'use English' in Perl. Those using $_, $/, etc will use them in the short form. Those hating them will not use them anyway, not even the pretty English names. -- dave