Data from another platform: Win95 / ActiveState v5.6.0 (build 623): 1212/10001  # huh? Ok, this made me want to try Chromatic's code: 10001/10000  # as expected since he did (0..$count)

Now the interesting thing is I had to install DB_File on This Old Box™ before running Chromatic's version, so just for fun what does Stamp_Guy's code do now? 10001/10001 # aha!

Now it certainly looks like there was something broken in my first test of Stamp_Guy's code that was fixed in the install. I removed DB_File and sure enough Stamp_Guy's code is borken again. Evidently (and I'm sure there are many here who can explain this) plain old dbmopen defaults to a defective DB that is included with the core ActiveState install. When you install a better one such as that in DB_File, it supersedes the broken one.

Update: Just to be clear, the first and third results were produced with Stamp_Guy's code unmodified from the root note of this thread. It turns out that Stamp_Guy is using Win98 and I used Win95 for my tests above, but when I repeated the tests on my NT4 box with the same ActiveState Perl build, the correct output appears even without DB_File, so now I suspect an OS problem, and not a problem with the default key+value size limitation in SDBM of 1024 bytes (see perldoc anydbm_file).

--
I'd like to be able to assign to an luser


In reply to Re: A major problem/bug with DBM drivers on Windows machines by Albannach
in thread A major problem/bug with DBM drivers on Windows machines by Stamp_Guy

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.