Subject: | Example code in synopsis improvement |
The example code in the synopsis has two minor flaws, which prevents a cut'n'paste trial:
- bread_db is not exported by default, so $self->bread_db dies
- Class::DBI::Loader is used but not 'use'd ;)
Patch attached.
Rhesa
--- BREAD.pm.orig 2005-07-10 16:16:23.000000000 +0200
+++ BREAD.pm 2005-07-10 16:17:34.000000000 +0200
@@ -414,7 +414,8 @@
package MyBREADApp;
use base 'CGI::Application';
- use CGI::Application::Plugin::BREAD;
+ use CGI::Application::Plugin::BREAD qw(bread_db);
+ use Class::DBI::Loader;
sub setup
{