in reply to Fibonacci Numbers

If this is the right place for this one-liner:

@a=(1);map{push@a,$a[-2]+$a[-1];print"$_:$a[$#a]$/"}1..23

Replies are listed 'Best First'.
Re^2: Fibonacci Numbers
by sh1tn (Priest) on Feb 10, 2005 at 02:15 UTC
    Less readable:
    $.++;$.+=$l,$l=$.-$l,print"$. "for 1..23

      Honourable monk, This is interesting, does the output of the second need to be piped through the first?
        Each line is independent script.
        There's no need to make pipe.