in reply to Perl (Berkeley DB)

Hello anjali, and welcome to the Perl Monastery.

Can you please post a fragment of the code you are working on, so monks can have a look at what you have done so far, that may help us to help you better.

Replies are listed 'Best First'.
Re: Re: Perl (Berkeley DB)
by Anonymous Monk on Dec 08, 2003 at 10:51 UTC
    Hi,
    Here is the code.For node no. I gave some no.s but no use. I have to know the content of this tes.db file.
    use Fcntl; use DB_File; tie(@file, 'DB_File', "C:/Prac/tes.db", O_RDWR, 293359, $DB_RECNO) or die "can't update /tmp/sample: $!"; print "line #1 was ", $file[1], "\n"; untie @file;
    Thanks.
      Hi anjali, can you please post your database file here as well. You can follow the procedure below to post the database file (I know your database file is only 12K or something):

    • ZIP up the db file
    • Download the free UUENCODE and UUDECODE utilities for Windows here
    • uuencode the ZIP'ed file with uuencode mydata.zip mydata.txt
    • Cut & paste the uuencoded text in a new follow-up post, or update your existing node.