perlquestion
DreamT
Dear Monks,<br><br>
I'd like to have a counter that is boolean, so when you increment it, it should either become 0 or 1, based on it's previous value. I can do it like this:
<code>
if ($Counter == 0)
{
$Counter = 1;
}
else
{
$Counter = 0;
}
</code>
, but I'd like to do the above in a more elegant way. Is it possible?