Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Perl Lint? Message-ID: <10796@jpl-devvax.JPL.NASA.GOV> Date: 19 Dec 90 01:00:43 GMT References: <1990Dec18.003438.21694@uvaarpa.Virginia.EDU> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 16 In article <1990Dec18.003438.21694@uvaarpa.Virginia.EDU> worley@compass.com writes: : : X-Name: Larry Wall : : You'd have to construct the entire call graph. Probably not worth : it, given that () in a scalar context Does the Right Thing anyway. : : OK, Larry, clue me in -- what does () in a scalar context do? It's : not in the manual. It returns the same thing as any other list evaluated in a scalar context, namely the last value. This is because a list in a scalar context is treated as a series of comma operators, as in C. Of course, the last element of a null list is undefined, so that's what you get for the return value. Larry