Subject: | not compatible with use diagnostics; |
Hi there,
I just discovered that you get a really weird error if you have a use diagnostics line in your program and try to use Autoloader (see example below).
I don't have the vaguest idea how to track down the problem any further, sorry. I don't think it's an important bug but it took me nearly a day to find this problem (the use diagnostics was buried in several thousand lines of nested modules :( ) so it might be worth adding a warning to the docs if it's not easy to fix.
Thanks for a really useful package.
Cheers, Dave
#!/bin/env perl
use strict;
use warnings;
use diagnostics;
use Class::DBI::AutoLoader (
dsn => "dbi:mysql:test",
username => 'dhoworth',
password => 'whatever',
options => { RaiseError => 1 },
tables => [ qw( table ) ],
namespace => 'Test',
);