in reply to Reaped: Fibonnaci

Without an array and starting from 0:
$a=$b=1;{$b-=$a+=$b*=-1;print$a,$/;999999>$a&&redo}

Replies are listed 'Best First'.
RE: RE (tilly) 1: Fibonnaci
by Adam (Vicar) on Oct 03, 2000 at 03:49 UTC
    Wow! Ok, I'm impressed.
      Thanks, but I stopped golfing way too soon:
      $a=1;print$a-=$b+=$a*=-1,$/while$a<10**6
        Yup, you did:
        $a=1;print$a-=$b+=$a*=-1,$/for 0..31
        (After all 1346269 is an arbitrary stopping place.)