in reply to Re: File Upload - Strict Ref Issue
in thread File Upload - Strict Ref Issue

Holy crap. I was guided into perl and "learned" it from existing, and apparently poorly written, code. Prototyping like this was ALWAYS done, so I just followed suit...

Should I be closing my read filehandle?

I'll give this a shot, thanks VERY much for the input ikegami.

Replies are listed 'Best First'.
Re^3: File Upload - Strict Ref Issue
by ikegami (Patriarch) on Oct 29, 2009 at 16:59 UTC
    They're lexically scoped, so they'll get closed when the sub exits. I left the close for the writer in case having an open handle prevents chmod from working.
      Gotcha, thanks.