|Perl Monk, Perl Meditation|
Re^2: Determine largest key in hashby Anonymous Monk
|on Oct 04, 2011 at 17:48 UTC||Need Help??|
Thank you for the response. I can give an overview of what I'm trying to do.
Pretend have a loop
At every iteration I need to check to see if I have an "event trigger" in the hash. If I do, I need to print it. I can't do a simple hash because each iteration (of the counter) COULD have more than one event trigger.
So on our first iteration we'd get triggered that we found Shrek. Sweet! It works well because we only had the one event.
However for the 6th time through the loop we have TWO events. That is why I need to numerically index them because I never know.. maybe an event happens in my code and I need to create a third or fourth event for iteration 6 and I need them ALL to work properly.
So the numerics are only for use in determining which iteration to come out on, and then they are used to allow me to use as many events as necessary (the event names in the real code are NOT unique so I would not be able to use the names of them. Numbers were the only thing I could think of to make this work.