The report function returns nothing. When I read the flat-file, it has aerio_sx_02_c.epsabrewster_pam.epsbbrewster_pam.eps in there. I should see keyvaluekeyvalue not just keykeykey.

I myself wrote a test function:

# testing Functions sub NDBM_test { my $date = MakeDate(); #write my %test; tie %test, "NDBM_File", 'test', O_RDWR|O_CREAT|O_EXCL, 0644; foreach $number (1...10) { $test{$number} = $date; } untie %test; #read tie %test, "NDBM_File", 'test', O_RDWR|O_EXCL, 0644; foreach $number (1...10) { print "$number: $test{$number}\n"; } untie %test; }

And it produces:

1: 20030828 2: 20030828 3: 20030828 4: 20030828 5: 20030828 6: 20030828 7: 20030828 8: 20030828 9: 20030828 10: 20030828

Here's what the flat file looks like...

2003082810200308289200308288200308287200308286200308285200308284200308 +283200308282200308281

In reply to Re: Re: NDBM_File won't store data by HamNRye
in thread NDBM_File won't store data by HamNRye

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.