in reply to Twelve Days of Christmas

++ I knew you could do it!

I had to remove your sig from the code before it would run... how'd that get in there?

Small omission... it's the "Twelve Days of Christmas" so why aren't you printing "day"?
print "On the $prefix[$day-1] day of Christmas\,\n";

Replies are listed 'Best First'.
Re: Re: Twelve Days of Christmas
by ibanix (Hermit) on Dec 13, 2002 at 16:46 UTC
    My .sig is embeded in code blocks, so it probally got in with the rest.

    As someone else already mentioned, it probally would have made more sense to replace all $day-1 with $day and change the body loop to  for (0..11) { todays_gift $_; }

    But oh well, it was fun to hack this together in ~ 20 minutes. :-D

    ibanix

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;