I believe the CPAN palm module lets you create empty
Palm::PDB objects (the super class of each specific
type of database), populate them, and write them back
out to disk. Take a look at perldoc Palm::PDB.
As a secondary point: You're post didn't specificly
mention that you wanted to sync these databases
with a handhelded, but assuming you do, keep in mind
that just creating a .pdb is only half the battle.
Unless your conduit understands what's going on,
you could find yourself adding duplicate records,
or blowing away data entered manually on the handheld.
"Syncing" happens in the conduits themselves, and each
conduit decides how to handle merging, so instead of
writting a script to generate a .pdb from some data,
and then worrying about how your syncing conduit will
deal with it, you might just wnat to write a conduit
that imports the data directly.
If you're developing on Unix,
your HotSyncing program is probably built on top of
pilot-link
-- the www site has lots of links with information
on writting conduits.
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.