Hi, I've has some fairly good experiences with the p5-Palm modules. I've written up some applications with it. The most complex one can be found on my site. Anyway ... what you'll want to look into is the Palm::PDB and the Palm::Raw modules. An outline of what you need to do is the following ...:
use Palm::PDB; use palm::Raw; use constant PDB_NAME => 'TimesheetDB'; # the name use constant PDB_TYPE => 'data'; # just data use constant PDB_CREATORID => 'TiSh'; # get one from Palm use constant PDB_VERSION => 261; # just a version number use constant PDB_MODIFICATION => 350; # a mod number use constant PDB_BASEID => 14360577; # you can leave this blank my $PDB = Palm::Raw->new(); $PDB->{"name"} = PDB_NAME; $PDB->{"type"} = PDB_TYPE; $PDB->{"creator"} = PDB_CREATORID; $PDB->{"attributes"}{"backup"} = 1; $PDB->{"version"} = PDB_VERSION; $PDB->{"modnum"} = PDB_MODIFICATION; my $record = $PDB->new_Record; $record->{"data"} = 'anything you want in here'; $record->{"id"} = $id++; # can do that ... do not need to $PDB->append_Record( $record ); $PDB->Write($filename);
So, this just generates the PDB, no you'll want to synchronise it also ... an execellent way to do is to use the coldsync package. Actually the p5-Palm utilities are from the creator of the coldsync package. You can have conduits (like in hotsync) completely written in Perl. You also can synchronise from you cradle, using Ir or doing fancy stuff like a network hotsync over a modem ...

Perl is actually a nice fit for writing conduits, as the real challenge is to talk to a system that needs to store the data entered on a Palm. Perl is the ultimate system integration language anyway ;-)

regards, Johan

In reply to Re: Perl and Palm Files by johanvdb
in thread Perl and Palm Files by Ryszard

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.