You're replying to a comment by Chanio.

July 31, 2009, 23:00

Thank you for these perl 1 liners juggling!

Why not adding an alternative to:
perl -le 'print~~grep/./,'

as another template example?...

perl -le 'print"TOTAL NON EMPTY LINES",~~grep!/^$/,'

It illustrates the negative regex and expands the alternatives a little further, just by using your examples.


Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "antispam_150": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.