e: Looking up values in arrays?
Paul Johnson wrote:
>
> > 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 inde
Paul Johnson wrote:
>
> > 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).
> >
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
Hi,
Benjamin Walkenhorst wrote:
>Hello,
>
>On Sun, 15 Feb 2004 20:50:59 +0100
>Paul Johnson <[EMAIL PROTECTED]> wrote:
>
>> > I'm sure something like this exists. Or do I need to write this
>> > myself?
>>
>> Something close exists. I think I'd probably code it as:
>
>Thanks a lot! =)
>
>Kind r
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)
Hello,
On Sun, 15 Feb 2004 20:50:59 +0100
Paul Johnson <[EMAIL PROTECTED]> wrote:
> > I'm sure something like this exists. Or do I need to write this
> > myself?
>
> Something close exists. I think I'd probably code it as:
Thanks a lot! =)
Kind regards,
Benjamin
--
To unsubscribe, e-mail:
On Sun, Feb 15, 2004 at 08:26:08PM +0100, Benjamin Walkenhorst wrote:
> 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 valu
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 thi