On 11/25/09 Wed  Nov 25, 2009  2:14 AM, "kusuma ramaswamy"
<rkus...@gmail.com> scribbled:

> Hello, I am new to perl. I would like to know how to toggle a variable with
> each iteration in a loop ??

while( ... ) {
    $variable = ! $variable;
}

Does that do what you want?




-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to