in reply to sum function

return unpack'%99d*',pack'd*',@hash{'foo', 'bar', 'baz'};

Replies are listed 'Best First'.
Re (tilly) 2: sum function
by tilly (Archbishop) on Dec 29, 2000 at 22:27 UTC
    Stop that!

    That kind of code is evil!

    Besides which, you are making me think. :-)

      #or if your numbers are large use POSIX; unpack"%@{[(DBL_MAX_EXP)-1]}d*",pack"d*",@hash{'foo', 'bar', 'baz'};

      >;-}