Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: pattern1 AND pattern2? Message-ID: <130399@uunet.UU.NET> Date: 25 Apr 91 19:22:15 GMT References: Organization: UUNET Communications Services, Falls Church, VA Lines: 10 In article dennis@nosc.mil (Dennis Cottel) writes: ?I know how to get a successful match on either of two patterns: ?"/pattern1|pattern2/". How can I say that both have to match? I've ?read most of the book and skimmed the rest, but I can't see it. I can't ?believe it isn't possible with Perl, though! /pat1/ && /pat2/ && do { &whatever(you,like); }; -- [rbj@uunet 1] stty sane unknown mode: sane