wfsp has asked for the wisdom of the Perl Monks concerning the following question:

This script:
#!/usr/bin/perl use strict; use warnings; use DBI; my $dbh = DBI->connect('dbi:AnyData(RaiseError=>1):'); $dbh->func( 'articles', 'CSV', 'articles.csv', 'ad_catalog' );
Produces this error:
Can't locate object method "STORE" via package "DBD::File::db" at c:/Perl/site/lib/DBD/File.pm line 275.
(added line break)

In c:/Perl/site/lib/DBD/File.pm:

#line 161 package DBD::File::db; # ====== DATABASE ====== # line 241 sub STORE ($$$) { # line 275 (the line reported in the error msg) return $dbh->SUPER::STORE($attrib, $value);
This follows an apparently successful install via PPM.

Anyone have any ideas on how I can fix this?

Replies are listed 'Best First'.
Re: DBI/AnyData error msg "can't locate method"
by VSarkiss (Monsignor) on Jul 06, 2005 at 14:37 UTC
Re: DBI/AnyData error msg "can't locate method"
by simonm (Vicar) on Jul 06, 2005 at 16:31 UTC
    I'm not sure what the specific problem is in this case.

    As a general debugging suggestion, you might want to check for more recent versions of any dependencies involved, such as DBD::File.

Re: DBI/AnyData error msg "can't locate method"
by idsfa (Vicar) on Nov 17, 2005 at 19:34 UTC

    Yes. This is because ActiveState's ppds do not work together. I found that I had AnyData 0.10 and DBD-AnyData 0.05 and got this same error. Upgrading DBD-AnyData to 0.08 manually solved the issue.


    The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon
Re: DBI/AnyData error msg "can't locate method"
by holli (Abbot) on Jul 06, 2005 at 14:20 UTC
    /msg jZed


    holli, /regexed monk/