While this isn't really an answer to the "lsearch" question, it does address the "perl mentality" part of the question
When I first started using perl (after some time in C) I thought hashes were black magic and I did a lot of stuff with lists that I would now do with a hash. In fact, I use lists pretty rarely any more.
When you're using lists, ask yourself if it could be done more easily with a hash.
-Pileofrogs
Updated: Yes! Thank you thor and ikegami. I think that was what I was trying to say.
In reply to Re: lsearch for perl?
by pileofrogs
in thread lsearch for perl?
by matt.tovey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |