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.)
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.)
In Section
Meditations