http://qs1969.pair.com?node_id=470405


in reply to Favourite One-liners?

I think the first I learned was: perl -pe 0 "filename". Rather trivial, but it took a bit of thought to understand what the "0" was.
For illustrating the power of Perl, I like perl-MLWP::Simple -e "print get(shift)" http://www.perlmonks.org
chas
(Those are for Win; Single quotes may be better on *nix.)