in reply to Re: Perl (Berkeley DB)
in thread Perl (Berkeley DB)

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.

Replies are listed 'Best First'.
Re: Re: Re: Perl (Berkeley DB)
by Roger (Parson) on Dec 08, 2003 at 12:20 UTC
    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.