note
Anonymous Monk
<blockquote>
I always use:
<code>
perl -e 'print <>' filename
</code>
</blockquote>
That's a one-liner I would never use. It's inefficient, and a lot longer to type than <code>cat filename</code>.
<p>
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.
470397
470397
7