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.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Favourite One-liners?
by epoptai (Curate) on Jun 28, 2005 at 19:47 UTC | |
by mhacker (Sexton) on Jun 29, 2005 at 14:57 UTC | |
Re^2: Favourite One-liners?
by ikegami (Patriarch) on Jun 28, 2005 at 18:40 UTC | |
by BUU (Prior) on Jun 28, 2005 at 19:40 UTC | |
by ikegami (Patriarch) on Jun 28, 2005 at 19:44 UTC |
In Section
Meditations