|
Posted by David Formosa (aka ? the Platy on March 9, 2008, 5:28 pm
Please log in for more thread options
> I am new to perl, and I am wondering whether it is a bad thing to jump out
> of a foreach loop with return. I have a function which searches for a
> value in one of several arrays.
You might look at the function "first" from the core module List::Util
which implements that for you.
|