in reply to while loops
Yours
should be$num=20; $while($num<30){ print "num is $num\n"; $num=$num+1;\n ; }
$num=20;<BR> while($num<30){ print "num is $num\n"; $num+=$num;\n; }
In Section
Tutorials