Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: hashing intervalsby sundialsvc4 (Abbot) |
on Jul 30, 2013 at 03:11 UTC ( [id://1046940]=note: print w/replies, xml ) | Need Help?? |
Your data could be expressed in an SQL (or SQLite) table with columns (low, high, value). If the problem were to be approached in this way, the values associated with an entire table-full of values-of-interest could be obtained using a simple INNER JOIN query, e.g.:
SELECT a.search_for, b.code Obviously, “it all depends on what you are doing and on the context in which you are doing it,” but this eliminates the need to “write a Perl program” altogether.
In Section
Seekers of Perl Wisdom
|
|