Found something after long search, saying this module (DBD::RAM) has lots of
bugs, and was told to use the DBD::AnyData
Will try it first, and come back again if I need help again
Thanks
Chanan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Chanan Berler
Sent: Tuesday, September 29, 2009 11:01 AM
To: 'Perl in Israel'
Subject: [Israel.pm] DBD::RAM

Hi All,

Has anyone worked with DBD::RAM moduel found on cpan ?
I tried this code, found on the cpan web:
And get these error: Can't locate object method "STORE" via package
"DBD::File::db" at
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBD/File.pm line 362.

#!/usr/bin/perl
use warnings;
use strict;
use DBI;

my $dbh_ram = DBI->connect('dbi:RAM:','','',{RaiseError=>1});

my $dbh_mysql =
DBI->connect('dbi:mysql:monitor','nagios','nagios',{RaiseError=>1});
my $sth_mysql = $dbh_mysql->prepare("select * from host");
$sth_mysql->execute();

$dbh_ram->func({
     data_type   => 'DBI',
     data_source => $sth_mysql,
 },'import' );
$dbh_mysql->disconnect;

print $dbh_ram->selectcol_arrayref(qq[
select host_name from host])->[0];



Q: can anyone help with this error ?
Thanks
CHanan

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.409 / Virus Database: 270.13.112/2391 - Release Date: 09/28/09
17:53:00

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to