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


in reply to Re: Catching errors in closing lexical filehandles
in thread Catching errors in closing lexical filehandles

On 5.005_03, you'd get a "Can't use an undefined value as filehandle reference" error at compilation. Hence the gensym.

Replies are listed 'Best First'.
Re^3: Catching errors in closing lexical filehandles
by ikegami (Patriarch) on Sep 27, 2004 at 15:16 UTC
    I see, thanks! good to know what works and doesn't work in which version. I'm so used to using FileHandle, which uses gensym.