Just to prove you can use trigs to solve almost anything:
$counter = int cos $counter * atan2(1, 0);

In reply to Re: Boolean counter? by JavaFan
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":