What arturo says is right, but I think the more fundemental problem is that you're using a less than perfect data structure given your problem. It would be much easier to just use a doubly linked list. There's probably something on CPAN.
In reply to Re: Finding Previous and Next in a HASH
by eg
in thread Finding Previous and Next in a HASH
by skazat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |