in reply to Re: Filter ::Handle segfaults 5.8.1
in thread Filter ::Handle segfaults 5.8.1
the code I think is resposible is in two parts
*print = *PRINT; *printf = *PRINTF; *new = *TIEHANDLE;
those calls happen outside of any sub in the Filter::Handle package, so they cause usage of those symbols in F::H to resolve to those subs in the Filter::Handle package.
sub PRINT { my $self = shift; my $fh = *{$self->{fh}}}; # the file handle we tied in TIEHANDLE print $fh $self->{output}->(@_); # the sub we passed in in TIEHANDLE }
that print never used to call PRINT again.
I'll try to reduce it to a simple case, but it will have to wait till I get gome - it is 8:30pm here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Filter ::Handle segfaults 5.8.1
by ysth (Canon) on Nov 17, 2003 at 09:56 UTC |