CGI::Application::NetNewsIface - a publicly-accessible read-only interface for Usenet (NNTP) news.
In a common module:
use CGI::Application::NetNewsIface; sub get_app { return CGI::Application::NetNewsIface->new( PARAMS => { 'nntp_server' => "nntp.perl.org", 'articles_per_page' => 10, 'dsn' => "dbi:SQLite:dbname=./data/mynntp.sqlite", } ); }
To set up:
get_app()->init_cache__sqlite();
To run
get_app()->run();
The Server to which to connect using NNTP.
The number of articles to display per page of listing of a newsgroup.
The DBI 'dsn' for the cache.
The setup subroutine as required by CGI::Application.
This is the cgiapp_prerun() subroutine.
Updates the cache records for the NNTP group $group. This method is used for maintenance, to make sure a script loads promptly.
$group
Initializes the SQLite cache that is pointed by the DBI DSN given as a parameter to the CGI script. This should be called before any use of the CGI Application itself, because otherwise there will be no tables to operate on.
Initializes the MySQL cache that is pointed by the DBI DSN given as a parameter to the CGI script. This should be called before any use of the CGI Application itself, because otherwise there will be no tables to operate on.
Shlomi Fish, http://www.shlomifish.org/ .
Please report any bugs or feature requests to bug-cgi-application-netnewsiface@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-NetNewsIface. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-application-netnewsiface@rt.cpan.org
None, but it doesn't mean there aren't any bugs.
Copyright 2006 Shlomi Fish, all rights reserved.
This program is released under the following license: MIT X11.
To install CGI::Application::NetNewsIface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Application::NetNewsIface
CPAN shell
perl -MCPAN -e shell install CGI::Application::NetNewsIface
For more information on module installation, please visit the detailed CPAN module installation guide.