Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: filehandle in local variable? Message-ID: <11685@jpl-devvax.JPL.NASA.GOV> Date: 5 Mar 91 19:10:54 GMT References: Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 15 In article guy@b11.ingr.com (Guy Streeter) writes: : The following code illustrates a problem I'm having: [deleted] : This code always fails on the last "print" in the subroutine, but only : if the filehandle is referenced through the local variable. Is there : some reason for this, or is it a bug? It works fine here. You didn't say what kind of machinery or OS you're using. You didn't say which version and patchlevel of perl you're using. It's difficult to help without this information. This looks vaguely like a problem that was fixed some time ago. Larry