Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: scalar split can coredump Message-ID: <10991@jpl-devvax.JPL.NASA.GOV> Date: 10 Jan 91 19:44:36 GMT References: <1991Jan10.173933.26134@convex.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 27 In article <1991Jan10.173933.26134@convex.com> tchrist@convex.com (Tom Christiansen) writes: : : This line makes perl dump core: : : perl -ne 'print unless split > 0' Fixed in 42. The special code to parse the implied /\s+/ was clobbering yacc's lookahead token subtype for >. : What I'm trying to do here is split $_ into @_ : and count the fields. I had done this: : : print unless split; : : But that didn't seem to work either (but no core dump), even : though the man page states: : : If not in an array context, returns the number of fields found and : splits into the @_ array. : : So, Larry, is this a bug or am I confused? The latter bug seems to be unrelated. I can't reproduce it here on any of my machines. It's either architecture specific or I've fixed it already. Larry