SPUG:Resetting a closure's memory

Sanford Morton smorton at pobox.com
Sun Feb 23 13:24:28 CST 2003


It just occurred to me that you could also use an auxilary subroutine that
shares the same memory:

 ( my $private = undef;
   sub aSub {  ....  }
   sub aSubReset { $private = undef; }
 }





More information about the spug-list mailing list