Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!mintaka!yale!cs.utexas.edu!convex!convex.com!tchrist From: tchrist@convex.com (Tom Christiansen) Newsgroups: comp.lang.perl Subject: scalar split can coredump Message-ID: <1991Jan10.173933.26134@convex.com> Date: 10 Jan 91 17:39:33 GMT Sender: news@convex.com (news access account) Reply-To: tchrist@convex.com (Tom Christiansen) Organization: Convex Computer Corp, Richardson, TX Lines: 29 Nntp-Posting-Host: pixel.convex.com This line makes perl dump core: perl -ne 'print unless split > 0' This is the stack backtrace: _make_op(8009ea88,2,8009ea88,800962c8,0) from 0x8005859e [ap = ffffc500] _yyparse() from 0x80035aea [ap = ffffc8f0] _main(1,ffffca20,ffffca28) from ___ap$envret+0x26 [ap = ffffca0c] 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? --tom -- "Hey, did you hear Stallman has replaced /vmunix with /vmunix.el? Now he can finally have the whole O/S built-in to his editor like he always wanted!" --me (Tom Christiansen )