[Israel.pm] Unreference file scalar

Yuval Yaari yuval at windax.com
Wed Sep 19 15:04:04 PDT 2007


Shmuel Fomberg wrote:
> Perl kept this $fh alive because it is selected,
> but its reference count get decreased to zero. 
> And when it's time for global destruction, Perl finds this file and discover
> that it has zero references. 
>   
Of course, you declared it as my $fh, remember? :)
After the eval block thingie, its refcount should be decreased.

  ~Y



More information about the Perl mailing list