Wiggins d'Anconia wrote:

> Benjamin Walkenhorst wrote:
>
> > Hello everybody,
> >
> > Is there a function to find out if a given value exists in an array?
> >
> > What I think of is something like &has_element([EMAIL PROTECTED], $value), which
> > should return either a boolean value or the index containing the value
> > (undef if $value is not found).
> > I'm sure something like this exists. Or do I need to write this myself?
> >
> >
> > kind regards,
> >
> > Benjamin
> >
>
> This was just discussed in depth,

True, but this is the first time I've seen Paul's suggestion, or at least the
first time it has registered.  I hope it will be offered more often, because it
is the most direct I've seen for similar needs.

Joseph




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to