Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!agate!agate!rusty From: rusty@groan.Berkeley.EDU (Rusty Wright) Newsgroups: comp.lang.perl Subject: does perl have an "in" operator? Message-ID: Date: 14 May 91 21:36:45 GMT Sender: root@agate.berkeley.edu (Charlie Root) Distribution: comp Organization: University of California Berkeley Lines: 8 I've used a language where with arrays there's an "in" operator that checks to see if an element is in an arry. For example, if you do @array = ( 1, 2, 3 ); if ( 1 in @array ) { print "true\n"; } it would print true. Does perl have anything like this?