in reply to Length

Very nice!

I thought of a good use for it - checking for spaces on (what should be) blank lines in POD. It inspired me to alter it to:

perl -nle' print $. if length==1'
Thanks Juerd!

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) Re: Length
by Juerd (Abbot) on Mar 14, 2002 at 16:55 UTC

    Great idea, but the thing that bites me most is having indents in pieces of code in POD. Between paragraphs, lines should be empty, even when dealing with code. So I changed it to:

    perl -nle'/^\s+$/&&print$.'

    U28geW91IGNhbiBhbGwgcm90MTMgY
    W5kIHBhY2soKS4gQnV0IGRvIHlvdS
    ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
    geW91IHNlZSBpdD8gIC0tIEp1ZXJk