You're viewing a comment by Chanio and its responses.

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 handle, if you have one.)

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

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