http://www.perlmonks.org?node_id=366973


in reply to Re: while loops
in thread while loops

Still not there.

$num=20; while($num<30) { print "num is $num\n"; <b><u>$num+=$num;\n</b></u> } #I think you ment: $num += 1; #Though these should work also: $num++; ++$num;
There is also an extra "\n;" in the code in the reply.