Palm-Progect
view release on metacpan or search on metacpan
bin/progconv view on Meta::CPAN
$converters{$converter}{File} = File::Spec->join('Palm', 'Progect', 'Converter', $name . '.pm' );
}
return %converters if wantarray;
return \%converters;
}
sub find_handled_db_versions {
my @handled_versions;
foreach my $inc (@INC) {
my $path = File::Spec->join($inc, 'Palm', 'Progect');
next unless -d $path;
if (opendir DIR, $path) {
my @subdirs = readdir(DIR);
close DIR;
foreach my $subdir (@subdirs) {
next unless -d File::Spec->join($path, $subdir);
next unless $subdir =~ /^DB_(\d*)$/;
push @handled_versions, $1;
}
}
}
return @handled_versions if wantarray;
return \@handled_versions;
}
__END__
=head1 NAME
progconv - convert between .txt, .csv and Palm Progect's PDB format.
=head1 SYNOPSIS
Export from a .pdb database to a text representation:
perl progconv lbPG-MyProgect.pdb MyProgect.txt
Convert a text tree back into a database:
perl progconv MyProgect.txt lbPG-MyProgect.pdb
You can convert to/from CSV files:
perl progconv lbPG-MyProgect.pdb MyProgect.csv
perl progconv MyProgect.csv MyProgect.txt
perl progconv MyProgect.csv lbPG-MyProgect.pdb
You can convert between various Progect database
versions:
perl progconv --output-format=23 MyOldProgect.pdb MyNewProgect.pdb
=head1 DESCRIPTION
C<progconv> is a program you run on your desktop computer
to allow you to import to and export from Palm Progect
database files.
For its text format, it uses a layout very similar to
the one used by Progect's own built-in converter:
[x] Level 1 Todo item
[10%] Child (progress)
. Child of Child (informational)
[80%] (31/12/2001) Progress item
[ ] Unticked action item
Almost all of Progect's fields are supported using this
format, including categories, ToDo links and notes.
See below under L<PROGCONV TEXT FORMAT>
For its CSV format it uses a simple table of records, with
indent level being one of the fields. See below under
L<PROGCONV CSV FORMAT>.
This program was written on Linux (Redhat 7.1).
It was tested on Windows 98 with perl 5.005 and perl 5.6.1,
and on Linux (Redhat 7.1) with perl 5.6.0 and perl 5.6.1.
=head1 OPTIONS
=head2 General Options
=over 4
=item --quiet
Suppress informational messages
=back
=head2 Conversion Options
=over 4
=item --input-format=auto|pdb|text|csv
The format C<progconv> should import from. Either C<auto>, C<pdb>, C<text>, or
C<csv>.
When C<auto> is selected, then C<progconv> will guess the file's type based
on its extension.
The default is C<auto>.
=item --output-format=auto|pdb|text|csv
The format C<progconv> should export to. Either C<auto>, C<pdb>, C<text>, or
C<csv>.
When C<auto> is selected, then C<progconv> will guess the file's type based
on its extension.
( run in 0.507 second using v1.01-cache-2.11-cpan-5b529ec07f3 )