Subject: | Doesn't check return value of $package->can |
Hi,
I'll admit that it's slightly hard to achieve but if you have weird
dependancy issues (like DBI isn't install but Class::DBI is) then
$package->can('set_db') returns "" which causes the goto to barf
with the not very helpful error message: Unable to create sub named "".
So maybe a or die "$package cannot set_db" type thing might be in order.
Just FYI you can achieve this by the not uncommon approach of installing
a new perl that has directories of pure perl modules in @INC and then
trying to use Class::DBI::BaseDSN before you install DBI for the new perl.
Cheers
Struan