in reply to Class DBI and reference counting
If you're using a modern enough Perl (5.6.1 or later, I believe), use Scalar::Util's weaken() function to create weak references in your cache. The documentation for the function shows a similar application.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class DBI and reference counting
by Nomis52 (Friar) on Jan 10, 2006 at 23:43 UTC |