CGI::Listman::exporter - exporting database records with bookkeeping
use CGI::Listman::exporter;
CGI::Listman::exporter provides some simple API to export instances of CGI::Listman::line to "Comma-Separated Values"-formatted files. Such files will generally be transmitted through a CGI (see the file_contents method below). Between instances of this CGI, you want to use the save_file method since there is no way for CGI::Listman to know when a CGI session get closed.
Creates an initialized instance of CGI::Listman::exporter.
All the parameters are optional with this method.
An optional string representing the filename of the export file.
An optional single-character string representing the CSV separator to be used. If not specified, the default will of course be a comma.
An instance of CGI::Listman::exporter
This method is of mandatory use if the filename is not specified when calling the new method. It cannot however be called twice.
A string representing the filename of the export file.
This methods returns nothing.
This method's name is quite explicit. It is useful when people want to use any other separator than the comma. People should however not be afraid of using the latter since even textual data containing such a character will be encapsulated in a way that prevent formatting conflicts.
A single-character string representing the separator in the CSV file.
Add an instance of CGI::Listman::line to your instance of CGI::Listman::exporter.
A single instance of CGI::Listman::line to be exported.
This method returns nothing.
Add instances of CGI::Listman::line in batch to your instance of CGI::Listman::exporter.
An instance of CGI::Listman::selection.
This method takes no parameter.
A perl string containing the contents of the export file in a DOS-formatted fashion (with both a "linefeed" and a "carriage return" at the end of each line). This is to ensure compatibility with the world-dominating operating systems.
Except when defining and exporting the data put in a CGI::Listman::exporter during the same CGI session, it is wise to save its contents in-between.
Wolfgang Sourdeau, <Wolfgang@Contre.COM>
Copyright (C) 2002 iScream multimédia <info@iScream.ca>
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
CGI::Listman::line(3) CGI::Listman::selection(3)
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'multimédia'. Assuming CP1252
To install CGI::Listman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Listman
CPAN shell
perl -MCPAN -e shell install CGI::Listman
For more information on module installation, please visit the detailed CPAN module installation guide.