in reply to Re: Average Age of the Perl Monk - Poll?
in thread Average Age of the Perl Monk - Poll?

Awesome!

Just curious, what did you use to calculate your average age?? :D

Good one. I thought about the title Age of the average Perl Monk but then I thought I would ge the reply, "What consitutes an "Average" Perl Monk? Which I think would be another great question.

Average is 37 here! (Note: the same as my average college midterm scores)
Thanks!

  • Comment on Re^2: Average Age of the Perl Monk - Poll?

Replies are listed 'Best First'.
Re^3: Average Age of the Perl Monk - Poll?
by merlyn (Sage) on Apr 21, 2005 at 15:18 UTC
      merlyn,
      Alternatively, your average age could be 22. Take the sum of all your ages and divide by the number of ages.
      print ave_age( 43 ); sub ave_age { ($_[0] * $_[0] + $_[0]) / 2 / $_[0] }
      Incidently, my average age using this formula is 14.5 which assumes you were never 0 years old.

      Cheers - L~R