Author image RĂ¼diger Peusquens


Palm::ListDB - Handler for ListDB databases


  use Palm::ListDB;

  $pdb = new Palm::PDB;


The ListDB PDB handler is a helper class for the Palm::PDB package. It parses ListDB databases. ListDB is a lightweight flat file database tool for PalmOS (tm) handhelds written by Andrew Low <>.

AppInfo block

The AppInfo block begins with standard category support. See Palm::StdAppInfo for details.

Other fields include:


This is a scalar, the ID of the last category assigned. Note that this is not the index in the array of categories stored in $pdb->{appinfo}{categories}!


This is a scalar, the index of the selected category. Category Unfiled should always be zero. Category All is 0xff. Note that this field does refer to the index in the array of categories stored in $pdb->{appinfo}{categories}.


This is a scalar indicating the write protection within the ListDB tool. If set, ListDB will not allow the PDA user to edit database records. (Of course she can always customize the database settings.)


These are both scalars, the names of the to fields the database records have.

Sort block


This is not defined. ListDB databases do not have a sort block.


    $record = $pdb->{records}[n]


These are scalars, the values for the to database fields of a record and an optional note. If a field does not exist, the corresponding field of the record have will either not exists or contain the empty string.


This is a scalar that contains the index of the category this record belongs to. This field refers to the index in the array of categories stored in $pdb->{appinfo}{categories}.



    $pdb = new Palm::ListDB;

Create a new PDB, initialized with the various Palm::ListDB fields and an empty record list.

Use this method if you want to create a ListDB PDB from scratch.


    $record = $pdb->new_ Record( category => $cat,
                                 field1   => 'field1',
                                 field1   => 'field1',
                                 note     => 'note' );

Creates and appends a new record to $pdb. All arguments are optional. The value to category can either be an index from the $pdb->{appinfo}{categories} array or an existing category's name. Empty category strings will silently be mapped the the Unfiled category.

new_Record does not add the new record to $pdb. For that, you want $pdb->append_Record.


Rudiger Peusquens <>

Palm::PDB is written by Andrew Arensburger <>

ListDB is written by Andrew Low <>. You can get a copy at