In particular if the last character is a zero and it should be in an an element of its own then it will get omitted:

if you say grep length($_), ... you avoid this problem...

---
$world=~s/war/peace/g


In reply to Re^2: Puzzlement in Splitsville by demerphq
in thread Puzzlement in Splitsville by tlm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":