G'day david123,
Welcome to the monastery.
The documentation for DBIx::Class::Schema::Loader has this regarding make_schema_at():
"Arguments: $schema_class_name, \%loader_options, \@connect_info"
So, you're missing the \%loader_options argument. This means that your \@connect_info (i.e. ['dbi::mysql::dbname=...]) is being read as that argument.
Line 165 of .../lib/DBIx/Class/Schema/Loader.pm (view the path given in the error message or see DBIx::Class::Schema::Loader Source) is:
my %args = (ref $_[0] eq 'HASH') ? %{$_[0]} : @_;
Which, given your arguments, evaluates to:
my %args = ['dbi::mysql::dbname=turboimmisoft', 'root', ''];
The error "Reference found where even-sized list expected" can be found in perldiag (Perl diagnostic messages) with a more detailed explanation.
-- Ken
In reply to Re: How to use DBIx::Class::Schema::Loader to create schema from an existing MySQL database?
by kcott
in thread How to use DBIx::Class::Schema::Loader to create schema from an existing MySQL database?
by david123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |