That's not very useful outside of one-liners since it'll remember the state from the previous loop pass or function call.

In reply to Re^2: Mini-Tutorial: Working with Odd/Even Elements by ikegami
in thread Mini-Tutorial: Working with Odd/Even Elements by ikegami

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