On Jul 09 2001, [EMAIL PROTECTED] wrote:
>     while (1) {
>       print $chars[$i++], "\r";
>       select(undef, undef, undef, PAUSE);
>     }

        The index of the array/list should be ($i++)%@chars instead,
        so that it does not get out of bounds.


        []s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Reply via email to