x=i=1;p x+=i=x-i while+1
2006-11-17 Retitled by Arunbear, as per Monastery guidelines Original title: 'Fibonacci numbers - final shot - 24 chars'
Meh, if you don't have to use perl, you can do much better:
Re: Fibonacci numbers (again).
Update: let's put them under each other to see which one is longer.
1 2 3
ruby -e'x=i=1;p x+=i=x-i while+1'
It's also easy to shorten the ruby version by two characters
That's 33, not 24 (since omitting the first line gives a compile error).
If you want really small, try 4!
I'm sure f can be made way smaller than ruby.
Update: Downsized from 10
ruby -e 'x=i=1;p x+=i=x-i while+1'
While your first post ran in Perl, this one doesn't.
syntax error at 584097.pl line 1, near "ruby -e "
Execution of 584097.pl aborted due to compilation errors.
Went to join the gridlock to see it
Held an eclipse party
Watched a live feed
I cn"t see tge kwubosd to amswr thus
I tried to see it, but 8000 miles of rock got in the way
Wanted to see it, but they wouldn't reschedule it
Read the book instead
Results (230 votes). Check out past polls.