[Dbix-class] did not return a true value

Byron Young Byron.Young at riverbed.com
Tue May 27 23:06:46 BST 2008


Does your MyDB/Dual.pm end in '1;'?  Perl complains if your modules don't end with a true statement.

byron

Jennifer Ahn wrote:
> hi!
>
> i created a Dual table which selects from dual.
> however, i get this error when i try to instantiate the class:
>
> Couldn't instantiate component... "Cannot load schema class 'MyDB':
> DBIx::Class::Schema::throw_exception(): MyDB/Dual.pm did not return a
> true value at
> /usr/lib/perl5/site_perl/5.8.8/Class/C3/Componentised.pm line 126.
>
> has anybody run into a similar problem?
>
> jen
>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class SVN:
> http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.rawmode.org



More information about the DBIx-Class mailing list