in reply to Can't use string ("") as a HASH ref while "strict refs"
my $dbh = vol::connect_new($config{'db'}{qw(db_host_name db_name db_user db_pw)});Hmm, in Perl, that is nonsense. Try something like
my $dbh = vol::connect_new(@{$config{'db'}}{qw(db_host_name db_name db +_user db_pw)});
I can't seem to find anything else wrong with your code, at first sight, so let's just start by trying that out, will you?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't use string ("") as a HASH ref while "strict refs"
by hesco (Deacon) on Nov 26, 2005 at 01:46 UTC | |
by ikegami (Patriarch) on Nov 26, 2005 at 03:27 UTC | |
by hesco (Deacon) on Nov 26, 2005 at 05:08 UTC | |
by ikegami (Patriarch) on Nov 26, 2005 at 05:15 UTC | |
| |
by bart (Canon) on Nov 26, 2005 at 09:16 UTC |