Path: utzoo!attcan!uunet!fernwood!decwrl!ucbvax!tut.cis.ohio-state.edu!mailrus!usenet.ins.cwru.edu!cwjcc!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery) Newsgroups: comp.lang.perl Subject: Re: simple script to write a file core dumps, why? Message-ID: <1990Mar10.031524.25799@NCoast.ORG> Date: 10 Mar 90 03:15:24 GMT References: <257@cmic.UUCP> <7335@jpl-devvax.JPL.NASA.GOV> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery) Followup-To: comp.lang.perl Organization: North Coast Public Access UN*X, Cleveland, OH Lines: 17 As quoted from <7335@jpl-devvax.JPL.NASA.GOV> by lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall): +--------------- | : printf(, "%s\n", $header[$i]); #this goes to the screen, too | | because the second thing you did wrong was to put a comma after the | filehandle, which makes it not a filehandle. What you wanted to say was +--------------- Yuck!!!!! (Quite aside from your proving my response to his posting wrong. ;-) Why does the comma matter? Just another Perl diver, ;-) ++Brandon -- Brandon S. Allbery (human), allbery@NCoast.ORG (Inet), BALLBERY (MCI Mail) ALLBERY (Delphi), uunet!cwjcc.cwru.edu!ncoast!allbery (UUCP), B.ALLBERY (GEnie) BrandonA (A-Online) ("...and a partridge in a pear tree!" ;-)