http://www.perlmonks.org?node_id=233229


in reply to The problem with one-liners...

I throw away one-liners. Anything I can do today, I hope to still be able to do in a year or two. By (my) definition, one-liners are bad code and bad code should imho not be saved :)

My favourite is

perl -ple'$a=$_=eval'
I dislike bc. The perl one-line calculator does what I want and is simple enough to remember and type in.

Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).