There's no reason why the
memory size limit should be expected
to look like a magic number -- or even be the same number
from one moment to the next.
It will depend on the amount
of free swap space, which might vary with how much file
data is sitting around on /tmp.
update: I noticed that the
NDBM module man page does talk about "errno 22", which happens
when a given key and/or value being stored is too large (the
limit is said to be 1008 bytes for key and value combined),
though I guess that's not relevant here -- or maybe it is,
hard to say based on the code in the OP.
Meanwhile, the "AnyDBM" man page cites "4k" as the "Size
limit" for NDBM (hmm, I guess one of these two man pages
might be off by about 3k), and it helpfully notes "?" for
"Database Size"...
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.