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.


Comment Responses

August 16, 2013, 09:51

straw cap What do you think of this provision of the Cap & Trade Bill? Will this be good for the economy?
<A>hiphop cap

Reply To This Comment

(why do I need your e-mail?)

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

Type the first letter of your name: (just to make sure you're a human)

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