Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Search an array for values sequentially

by RichardK (Parson)
on May 20, 2014 at 09:30 UTC ( #1086762=note: print w/replies, xml ) Need Help??

in reply to Search an array for values sequentially

why set up a hash of type => priorities and search your array for the element with the highest priority?

  • Comment on Re: Search an array for values sequentially

Replies are listed 'Best First'.
Re^2: Search an array for values sequentially
by Doozer (Scribe) on May 20, 2014 at 09:37 UTC
    Thank you all for the quick responses. There are some good methods here which I completely overlooked i.e. using the hash. This looks to be the best solution for what I need but I will have a play and see what works out the best.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1086762]
[Discipulus]: here quite well thanks. still alive. Unfortunately I have the 64Kb limit
Discipulus now is read a book to my daugther time. Just after she and mother stop yelling in the bathroom
[Lady_Aleena]: See you later, Discipulus. Have fun reading to your daughter.
Discipulus still yelling..;=(

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-09-24 18:31 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (274 votes). Check out past polls.