http://www.perlmonks.org?node_id=400616


in reply to Global filehandles?

It would be easier to help if we could see some code. Are sure that you didn't make a lexical filehandle?

i.e. open(my $fh, ">logfile")

...or did you localize the filehandle, 'local IN', ?

Replies are listed 'Best First'.
Re^2: Global filehandles?
by Marknel (Acolyte) on Oct 19, 2004 at 18:38 UTC
    After typing out an example, I noticed what my problem was. I had the open nested in an IF that rarely would be used.] God knows what I was thinking and I'm sorry for wasting your time. :)

      If it helped you solve the problem, even indirectly, it wasn't wasted time. Sometimes it just takes a second set of eyes or a question from somebody else to help you see the solution/problem. Funny how that works... =8^)