I just wanted to second this. If your script does anything long term then this is a must. I've been bitten by randomly closing database handles on my singleton in the past and it was well worth the additional _cached to fix it. I beleive this also adds value in mod_perl environments as it will cache across requests which is a big ++.
In reply to Re^2: Problem creating a singleton wrapper around DBI
by eric256
in thread Problem creating a singleton wrapper around DBI
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |