in reply to Re: fibo's 66 chars
in thread fibo's 66 chars
You can save fourteen more strokes (and, irrelevantly, memory) by not using an array and using convoluted scalar assignment with a variable that is pre-initialized:@b=(0,1);push@b,$b[-2]+$b[-1]for 2..pop;print$b[-2]
$b=1;$?=($b+=$?)-$?for 2..pop;print$?
|
|---|