in reply to how to find an element in a table
This recipe for implementing sparse arrays using hashes might help with what you want.
On the other hand, if the Element_<number>s are all consecutive, you might be better off ditching hashes altogether and using a plain array. The previous-element problem becomes trivial, though searching an array for a known value is less simple.
cat >~/.sig </dev/interesting
|
|---|