Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!ugle.unit.no!nuug!ulrik!ulrik!blarsen From: blarsen@spider.uio.no (Bjorn Larsen) Newsgroups: comp.lang.perl Subject: Semicolon? What semicolon? Message-ID: Date: 10 Jan 91 22:08:34 GMT References: <1991Jan10.173933.26134@convex.com> Sender: news@ulrik.uio.no (USENET News System) Reply-To: Bjorn.Larsen@usit.uio.no Organization: University of Oslo, Norway Lines: 19 In-Reply-To: tchrist@convex.com's message of 10 Jan 91 17:39:33 GMT Playing around with Tom's reported scalar split strangeness, I came up with this weirdo: ulrik $ perl -ne '$a=(' syntax error in file /tmp/perl-ea28951 at line 2, next token ";" Execution of /tmp/perl-ea28951 aborted due to compilation errors. ulrik $ Obviously the perl code is meaningless, but what on earth is the ";" doing there? [ My guess is that Perl implements -e by tacking on a ";" at the end of the Perl code if it is missing -- if I remember right that was added by Larry to please Randal some time ago -- but the error message still can be rather confusing to someone who didn't overhear the discussion way back then. ] - bjorn