in reply to Floats with trailing zeros as a hash key

Yes. Use a database.
  • Comment on Re: Floats with trailing zeros as a hash key

Replies are listed 'Best First'.
Re: Re: Floats with trailing zeros as a hash key
by hardburn (Abbot) on May 09, 2003 at 14:57 UTC

    This is a tiny little script sitting on a web server taking orders for a grand total of 5 items. A database would be massive overkill.

    And in any case, I'm more intrested in a theoretical solution to mixing string and numeric contexts in hash keys.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated