Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Floats with trailing zeros as a hash key

by Anonymous Monk
on May 09, 2003 at 14:52 UTC ( [id://256890]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found