There's more than one way to do things | |
PerlMonks |
Re: Re: Floats with trailing zeros as a hash keyby hardburn (Abbot) |
on May 09, 2003 at 15:40 UTC ( [id://256906]=note: print w/replies, xml ) | Need Help?? |
Do you perhaps want fast lookups of the prices? Yes, exactly. This actually a rewrite of another script. The orginal programmer used a long series of if/elsif statements. This is how I cleaned it up. This way, there's no need to store two versions of the key. The real problem comes like this:
---- Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|