Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: Perl: how to do is x in @example.com
- To: tlug@example.com
- Subject: Re: Perl: how to do is x in @example.com
- From: Simon Cozens <simon@example.com>
- Date: Fri, 25 May 2001 02:40:26 +0100
- Content-Disposition: inline
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <F102BLSAQV6uPDVniSn000043ae@example.com>; from jean_christian@example.com on Fri, May 25, 2001 at 01:21:54AM -0000
- References: <F102BLSAQV6uPDVniSn000043ae@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <F4hhy.A.9aD.RgbD7@example.com>
- Resent-Sender: tlug-request@example.com
- Sender: Simon Cozens <simon@example.com>
- User-Agent: Mutt/1.3.17i
On Fri, May 25, 2001 at 01:21:54AM -0000, Jean-Christian Imbeault wrote: > @example.com = {"one", "two"}; ^ That's an anonymous hash constructor. You don't want one of them. :) > if ($x is in @example.com) {do this;} You could use one here, though: if (exists {map {$_=>1} @example.com }->{$x}) Don't ask. :) -- int three = 128+64, two = 128, one=64; - plan9 has a bad day
- Follow-Ups:
- Re: Perl: how to do is x in @example.com
- From: Matt Doughty <mdoughty@example.com>
- References:
- Perl: how to do is x in @example.com
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Perl: how to do is x in @example.com
- Next by Date: Re: Perl: how to do is x in @example.com
- Prev by thread: Re: Perl: how to do is x in @example.com
- Next by thread: Re: Perl: how to do is x in @example.com
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links