On Jan 27, 3:29 am, [email protected] (Jins Thomas) wrote:
> On Thu, Jan 27, 2011 at 4:44 PM, C.DeRykus <[email protected]> wrote:
> > On Jan 26, 11:28 pm, [email protected] (Jins Thomas) wrote:
>
> > > Hi DeRykus
>
> > > Sorry for replying late.
>
> > > I was able to test DB_File with your example, thanks. But i'm facing
> > > a problem. I'm not able to access multi dimensional array with this
> > > DB_File. Address is being stored just a string.
>
> > > Do we have some options where we can access multi dimensional arrays
> > > (like two dimensional array from html tables)
> > > ....
>
> > MLDBM or MLDBM::Easy are options. Also DBM::Deep.
>
> > --
> > Charles DeRykkus
>
> But MLDBM documentation talks only about hashes, no examples for arrays. So
> got confused.
>
>
DBM::Deep enables array DBM's. See docs.
For ex:
use DBM::Deep;
my $db = DBM::Deep->new(
file => "foo-array.db",
type => DBM::Deep->TYPE_ARRAY
);
$db->[0] = "foo";
...
--
Charles DeRykus
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/