Problem of import DBI module - Complication Failed in require

Posted by Winnie on Stack Overflow See other posts from Stack Overflow or by Winnie
Published on 2011-02-19T15:18:28Z Indexed on 2011/02/19 15:25 UTC
Read the original article Hit count: 217

Filed under:

Hi All,

I have a problem when I use the DBI module in scritp .pm. please help

thanks you

package CC;

use DBI; use strict; use Alias;

my $dbFile = 'XXXXXXXX.db';

my $db = DBI->connect("dbi:SQLite:$dbFile","","", {RaiseError =>1, AutoCommit => 1})or "Unable to connect: $DBI::errstr\n";

use Alias qw(attr); our ($CURRENTOFFSET,@LANGUAGE);

sub new { my $that = shift; my $class = ref($that)|| $that; my $self = { CURRENTOFFSET=> undef, LANGUAGE => []
}; bless($self, $class); return $self; }

© Stack Overflow or respective owner

Related posts about perl