in reply to Re: a problem with a filehandle reference
in thread a problem with a filehandle reference

Thanks! This should simplify the things. I am just really wondering why the approach doesn't work with filehandles. Is there something wrong with attr or am I doing stupid things? A.
  • Comment on Re: Re: a problem with a filehandle reference

Replies are listed 'Best First'.
Re: Re: Re: a problem with a filehandle reference
by Rhandom (Curate) on Apr 20, 2001 at 00:00 UTC
    Without experimenting, you may need to do things like
    local *FH = \$this->{FL}; flock FH, LOCK_EX;
    or
    flock { $this->{FL} }, LOCK_EX;
    You have the same types of problems when trying to print on a handle stored in a hash.