Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Global filehandles?

by sth (Priest)
on Oct 19, 2004 at 18:26 UTC ( #400616=note: print w/ replies, xml ) Need Help??


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', ?


Comment on Re: Global filehandles?
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^)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://400616]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-07-28 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls