in reply to Re: numerology experiment
in thread numerology experiment

Why does this not result in a total of 81?

The letter "a" appears 3 times: 3x7=21

The letter "e" appears 4 times: 4x2=8

The letter "z" appears 2 times: 2x26=52

21+8+52=81, not 126.

Replies are listed 'Best First'.
Re^3: numerology experiment
by GrandFather (Saint) on Nov 26, 2007 at 21:41 UTC

    Because of a bug ;). map {++$counter, $wanted{$_}} should have been map {++$counter; $wanted{$_}} (note the s/,/;/).


    Perl is environmentally friendly - it saves trees