#!/usr/bin/perl
#-----------------------------------------------------------------------------
# $Id : text2table 0.2 2008-05-13 JMG$
#-----------------------------------------------------------------------------
=head1 NAME
text2table - flat text conversion to OpenDocument spreadsheet
=head1 SYNOPSIS
text2table sourcefile.csv mycalc.ods 32 20
=head1 DESCRIPTION
Creates an ODF spreadsheet file and populate its first sheet
from a delimited text file. Each line of the source file produces
a row in the target table. In the line, the field separator is ";".
The target file is created. Any existing file with the same name is
replaced.
The two last arguments are the length (lines) and the width (columns)
of the target table.
The input values are processed as text values.
=cut
use OpenOffice::OODoc 2.103;
my ($input_file, $output_file, $lines, $columns) = @ARGV;
die "Usage : txt2table