Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Fibonacci Sequence

by skunix (Novice)
on Feb 27, 2013 at 14:59 UTC ( #1020903=note: print w/replies, xml ) Need Help??


in reply to Re: Fibonacci Sequence
in thread Fibonacci Sequence

Today I learned, $/ :D

Replies are listed 'Best First'.
Re^3: Fibonacci Sequence
by skunix (Novice) on Feb 27, 2013 at 15:21 UTC

    Still not as short as yours but here is mine revised:

    $~=$^++;_:$~^=$^ ^=$~^=$^;$_.=($~=$~+$^.$/);($~<$$)?goto _:print

      Loopy version

      for($\=1;$/<1<<7;$\+=$/,$/=$\-$/){print $"}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020903]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-03-25 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (313 votes). Check out past polls.