# here's a while statement in python.
a,b = 0,1
while b < 20:
print b
a,b = b,a+b
---------------
# here's the same code in perl
($a,$b)=(0,1);
while ($b<20) {
print $b, "\n";
($a,$b)= ($b, $a+$b);
}
Xah
xah@xahlee.org
a,b = 0,1
while b < 20:
print b
a,b = b,a+b
---------------
# here's the same code in perl
($a,$b)=(0,1);
while ($b<20) {
print $b, "\n";
($a,$b)= ($b, $a+$b);
}
Xah
xah@xahlee.org
Comment