why set up a hash of type => priorities and search your array for the element with the highest priority?
In reply to Re: Search an array for values sequentially
by RichardK
in thread Search an array for values sequentially
by Doozer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |