Nix Juban wrote:
>
> I would like to know if i understood this line clear.
>
> while (1) { print $e[ ($i %= @e)++ ], "\b"; }
>
> so modulo's values are 0 then 1 then 2 then 0 (tehn loops back again).
> This will make it loop and print the 4 values of my array.
>
> is this applicable for all arrays with unlimited number of elements?
An array in scalar context will return the number of elements in that
array so the expression ($i %= @array) is the same as ($i %= 10) if
@array has ten elements or ($i %= 200) if @array has two hundred
elements.
> how about auto flush? what does it do?
Normally screen output is buffered and won't appear on the screen until
a newline is printed. Turning on autoflush lets output appear on the
screen without a newline.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]