I am trying to read an aliases.db file that
was, apparently, created by an old sendmail program. The “file” command
reports:
Berkeley DB (Hash, version 5, native byte-order)
and this is, apparently, too old for
DB_File to read.
I have another aliases.db on another computer which is
(according to the “file” command)
Berkeley DB (Hash, version 9, native byte-order)
and
DB_File reads that one perfectly, so
there is nothing wrong with my perl program.
Lest you be tempted to tell me to use a more modern DB
format for my aliases.db file, I tried that already,
and it didn't work.
I ran
newaliases on my new computer, and sent
the newly-generated aliases.db file back to my old computer,
and my
sendmail program on my old computer
couldn't read it, so it was useless.
I have to use the version-5 format.
How do I write a perl program that can read it?
If you do not think that this question is of general
interest, please do me the kindness of replying to me
at
jay at m5 dot chicago dot il dot us
Thank you in advance for any and all replies.
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.