Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!f.gp.cs.cmu.edu!mleone From: mleone@f.gp.cs.cmu.edu (Mark Leone) Newsgroups: comp.lang.perl Subject: Re: Using 'split' with multi character expressions Message-ID: <9440@pt.cs.cmu.edu> Date: 27 May 90 21:46:22 GMT References: <1933@pyrltd.UUCP> <8203@jpl-devvax.JPL.NASA.GOV> <9423@pt.cs.cmu.edu> <8209@jpl-devvax.JPL.NASA.GOV> Organization: Carnegie-Mellon University, CS/RI Lines: 11 In article <8209@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: >Uh, I don't have any trouble with split(/$word/i,$string). Are you sure >you didn't just try split(/x/i, $string) and generalize from that? The >case of a single explicit split letter doesn't work right, but I can't >get anything else to misbehave here, including if $word is a single char. Oops! You're right, I lept to the wrong conclusion by testing a single explicit letter (and reading the documentation :-). Thanks for setting me straight. - Mark