in reply to Re: Re: Scalars tied to logfiles
in thread Scalars tied to logfiles

Aye, but he'll probably want to close the filehandle on untie.

Replies are listed 'Best First'.
Re: Re: Re: Re: Scalars tied to logfiles
by davido (Cardinal) on Dec 11, 2003 at 05:42 UTC
    Good observation... you made me think it through for a minute.

    I think that because I'm using an object-oriented approach to the file handling (IO::File), when the scalar is either UNTIEd or DESTROYed the IO::File object will have its ref-count dropped down to zero, and the file will be closed automatically.


    Dave