DBD::DBM and hashrefs
- From: lists@xxxxxxxxxxxx (Ryan Tate)
- Date: Thu, 13 Oct 2005 10:11:41 -0700
Hello,
I have a question about using DBD::DBM in MLDBM mode: does anyone know
whether it works with hashrefs as values, or just arrayrefs?
Reading the docs and trying the module leads me to believe it only
works with data like:
$Tied_hash{ $id } = [ $val1, $val2 ];
But all the data in my DB file looks like:
$Tied_hash{ $id } = { key1 => $val1, key2 => $val2 };
.... and I'd like to use DBD::DBM to access it (i.e. "SELECT key1, key2
from foo WHERE id=?") but as far as I can tell this is not possible.
Am I right?
Thanks for any help
RT
.
- Follow-Ups:
- Re: DBD::DBM and hashrefs
- From: Ron Savage
- Re: DBD::DBM and hashrefs
- Prev by Date: Re: DBD::Oracle and $sth->{PRECISION}
- Next by Date: DBD::Oracle and ErrCount
- Previous by thread: RE: Execute failed: ORA-01026: multiple buffers of size > 4000 in the bind list (DBD: oexec error) - update
- Next by thread: Re: DBD::DBM and hashrefs
- Index(es):