Para o exemplo abaixo, o que deveria ser feito para impedir o estouro da variável $var ?!<br><br><span style="font-weight: bold;">use constant MAX =&gt; 2000;
</span><br style="font-weight: bold;"><span style="font-weight: bold;">my $var = 0;</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">while(1) {</span><br style="font-weight: bold;">

<span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print $var++ % MAX;</span><br style="font-weight: bold;"><span style="font-weight: bold;">}</span><br><br>O que me interessa eh fazer um controle entre 0..(MAX - 1), porem vai chegar um ponto que 
<span style="font-weight: bold;">$var</span> vai estourar. Se alguem souber de alguma dica manda ae. GRATO !!!<br>