I always use:That's a one-liner I would never use. It's inefficient, and a lot longer to type than cat filename.perl -e 'print <>' filename
I use one-liners a lot. However, I seldomly use Perl in one-liners - when it comes to one-liners a Unix shell (with the standard Unix tools) usually beats Perl.
In reply to Re: Favourite One-liners?
by Anonymous Monk
in thread Favourite One-liners?
by ghenry
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |