ok i think my first message wasent giving any info so here a longer one ...
my $lib = Lib->new();
sub some_sub
{
$inref->{dbh}->prepare(qq| SELECT * from affiliate_account|); # for
test purpose only works fine
$lib->some_other_lib_function_just_to_test("hello"); # for test
purpose only works fine
$lib->create_order_redistribution_matrix($inref);
}
in the file Lib.pm
sub create_order_redistribution_matrix
{
my $inref = shift;
my $sth = $inref->{dbh}->prepare(qq|select * from affiliate_account
where aa_affiliateid like "| . lc($inref->{master_affiliate}) . qq|" AND
aa_deleted = 'false'|);
}
# i get this error Can't call method "prepare" on an undefined value at
/var/www/htdocs/cgi-bin//OxcartAPIs/Lib.pm line 731.
can some one can help me please!!!
hope you can understand my english!