P is for Practical | |
PerlMonks |
Re: Re: Re: Tie::Hash::Regexby Masem (Monsignor) |
on May 11, 2001 at 18:14 UTC ( [id://79724]=note: print w/replies, xml ) | Need Help?? |
Another idea similar to your deleting but without modifying the hash would be to make the fetch function store the current position of where it is in the keys, then subsequent calls would start from that last position. Of course, you'd then need a secondary hash in the tie to keep track of this, and there would be no easy way to reset this short of a function call to trick it. Additionally, modification of the hash between subsequent calls would pose a problem.
Just tossing out ideas here in case something triggers insight....
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
In Section
Code Catacombs
|
|