|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: DB_File modesby chuckbutler (Curate) |
| on Feb 11, 2010 at 04:19 UTC ( #822580=note: print w/ replies, xml ) | Need Help?? |
|
If you are using a current version of Perl, say > 5.5, using tie %hash is the way to go. Be advised, on some versions/ports tie DOES NOT return the reference to the underlying object of the tie on success. If you are planning to use an extended routine via $ref->routine( ), you may get the reference by $ref = tied(%hash) first. Be sure that the $ref is undef/out-of-scope before you untie %hash. Good luck. -c
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||