in reply to Rabbits

CloneArmyCommander,
It doesn't work for me.
$ perl rabbit.pl Use of uninitialized value in numeric lt (<) at ./rabbit.pl line 7. {1,1,0,. . .} $ perl -v This is perl, v5.8.5 built for cygwin-thread-multi-64int

Cheers - L~R

Update: I guess it helps if you supply it a command line argument - Sorry. To avoid this I would adjust the ASCII with the following change:
fib($ARGV[0]) to fib($ARGV[0]||42)

Replies are listed 'Best First'.
Re^2: Rabbits
by CloneArmyCommander (Friar) on Nov 19, 2004 at 19:08 UTC
    Sounds like a nice even number :), I usually tested it with 10, but I was not sure how much people wanted to see of it.
Re^2: Rabbits
by CloneArmyCommander (Friar) on Nov 19, 2004 at 19:06 UTC
    Sorry for that, I probably should have made that clear :). I was in a hurry when I posted it, so I am still in the process of cleaning up grammar and spelling (the down side to Perl value of being impatient ;). I hope my code has some sort of value :).