Just to show that you can make a lot with "lookup-tables" ;-)

$counter = (1, 0)[$counter];

Rata

In reply to Re: Boolean counter? by Ratazong
in thread Boolean counter? by DreamT

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