On Thu, Jul 18, 2002 at 04:49:13PM -0700, Rod Roark wrote: [...] > BTW does ruby let you do one-liners as in perl -e?
Indeed. Try:
echo foo | ruby -pe '$_.tr!("a-z", "A-Z").'
which does require the ugly $_, but nearly matches perl in compactness.
(Sorry, forgot to add this to my last message.)
--
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/pgp>
for information. My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.
msg03190/pgp00000.pgp
Description: PGP signature
