Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Using 'split' with multi character expressions Message-ID: <8209@jpl-devvax.JPL.NASA.GOV> Date: 26 May 90 03:33:23 GMT References: <1933@pyrltd.UUCP> <8203@jpl-devvax.JPL.NASA.GOV> <9423@pt.cs.cmu.edu> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 17 In article <9423@pt.cs.cmu.edu> mleone@f.gp.cs.cmu.edu (Mark Leone) writes: : : On a related note, why doesn't split allow a case-insensitive pattern? : I.e., split(/$word/i, $string). It seems like all the other pattern : operations support case-insensitivity! : : Is there some other good way to do this when $word and $string are not : known at compile-time? 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. By the way, the next patch will fix split(/x/i). Larry