in reply to Perl and Palm Files

I've been toying with P5::Palm for a while (even posted a few, broken scripts here)... The trick is to read the StdAppInfo POD properly... It contains stuff like ID number, category etc. If you want your data to be handled as Palm data, I suggest you look into that. Data::Dumper helped me to understand how exactly the Palm data structure was used by p5::Palm.
#!/usr/bin/perl use strict; use Palm::Memo; use Data::Dumper; open(FOO,">foo"); my $pdb = Palm::Memo->new(); $pdb->Load("MemoDB.pdb"); #Load a memo print FOO Dumper $pdb; #Dump the entire structure into a file close(FOO);
I've been working on a similar project for some time now... I currently have my Datebook, Addressbook, Memos and Todo list online... I'll release it thru Sourceforge in the near future. If you want a link or a lookie at some code, lemme know.

Update:This is some basic data adding code for Palm::Memo (part of p5::Palm)
#!/usr/bin/perl use strict; use Palm::Memo; my $pdb = Palm::Memo->new(); $pdb->Load("MemoDB.pdb"); my $record = $pdb->new_Record; $record->{data} = "Foo\nBar\nBaz"; $record->{id} = int rand 65535; $pdb->append_Record($record); $pdb->Write("MemoDB.pdb"); #Warning: The original MemoDB will be overwritten here #I tested this on POSE, since my Palm was out of reach :)

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.