in reply to Re^2: Golfing a fibonacci number generator
in thread Golfing a fibonacci number generator

Doesn't work - at least not for me. My best stab is 39 chars (which I'm sure can be improved):
($x,$y)=($y,$x+$y),print$y for$x++..19

Replies are listed 'Best First'.
Re^4: Golfing a fibonacci number generator
by sh1tn (Priest) on Nov 05, 2006 at 16:38 UTC
    Yes, it works just fine (blame only yourself for your errors):
    perl -e 'print$}+=$.=$}-$.||1while.1' 1235813213455891442333776109871597258441816765109461771128657463687... +...... # and so on...


      You're missing a 1 at the beginning.