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: Matt Doughty <mdoughty@example.com>
- Date: Fri, 25 May 2001 10:49:41 +0900
- Content-Disposition: inline
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <20010525024026.A1781@example.com>; from simon@example.com on Fri, May 25, 2001 at 02:40:26AM +0100
- References: <F102BLSAQV6uPDVniSn000043ae@example.com> <20010525024026.A1781@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <WcIaCD.A.VcD.8obD7@example.com>
- Resent-Sender: tlug-request@example.com
- User-Agent: Mutt/1.2.4i-jp0
On Fri, May 25, 2001 at 02:40:26AM +0100, Simon Cozens wrote: > 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}) umm.... I think this classifies as perl abuse.... thanks Simon I'm going to have nightmares... > > Don't ask. :) > > -- > int three = 128+64, two = 128, one=64; > - plan9 has a bad day > > ----------------------------------------------------------------------- > Next Technical Meeting: Sat, May 12 13:30- > Next Nomikai Meeting: Fri, June (TBA) 19:30- Tengu Tokyo Eki Mae > ----------------------------------------------------------------------- > more info: http://www.tlug.gr.jp Sponsor: Global Online Japan
- Follow-Ups:
- Re: Perl: how to do is x in @example.com
- From: Fredric Fredricson <fredric.fredriksson@example.com>
- References:
- Perl: how to do is x in @example.com
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
- Re: Perl: how to do is x in @example.com
- From: Simon Cozens <simon@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Perl: how to do is x in @example.com
- Next by Date: Re: Linux and ADSL
- 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