On Jan 27, 3:29 am, jinstho...@gmail.com (Jins Thomas) wrote:
> On Thu, Jan 27, 2011 at 4:44 PM, C.DeRykus <dery...@gmail.com> wrote:
> > On Jan 26, 11:28 pm, jinstho...@gmail.com (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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to