Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Palm::PDB: How to compose a PDB?

Thread Tools

Palm::PDB: How to compose a PDB?

Josef Moellers
Posts: n/a

I am trying to convert between a Palm PDB "database" file and a CSV file.
Reading the PDB and writing the CSV is pretty easy: I write a helper
class which exports the ParseAppInfoBlock() and ParseRecord() methods
and registers itself by calling Palm:DB::RegisterPDBHandlers().
However, when trying to write a PDB file, I get the error message

Can't locate object method "PackAppInfoBlock" via package "Palm:DB" at
/usr/local/share/perl/5.8.8/Palm/ line 1080.

My helper file does define a PackAppInfoBlock() method, but, apparently,
this isn't picked up by Palm:DB.

Here's an attempt at a minimal script which requires Palm:DB (my
version is,v 1.36).

#! /usr/bin/perl

BEGIN { unshift @INC, '.' }
use warnings;
use strict;
use Palm:DB;
use DBOSDB00;

my $dst = Palm:DB->new({ name => 'TEST',
creator => 'DBOS',
type => 'DB00'});

exit 0;

This module to be placed in same directory as main script

package DBOSDB00;

use warnings;
use strict;
use Palm:DB;

sub import {
print STDERR "import of DBOSDB00\n";
&Palm:DB::RegisterPDBHandlers(__PACKAGE__, [ "DBOS", "DB00" ]);

sub PackAppInfoBlock {
my ($self) = @_;
my $appinfo;

# construct appinfo from $self->{appinfo}

return $appinfo;

These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details:

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
thunderbird 1.5 message compose error steve Firefox 7 04-03-2006 03:49 PM
Mail/Compose Firefox 2 05-07-2005 03:28 PM
No compose key for me? Kilian A. Foth Firefox 0 05-04-2005 12:11 PM
Compose and smileys? Jukka_Mannonen Firefox 10 04-28-2004 03:10 AM