Code:
#!/usr/bin/perl
# Here Module's are define
use DBI;
# For database Connectivity
my $DSN = q/dbi:ODBC:SQLSERVER/;
my $uid = q/ivr/;
my $pwd = q/ivr/;
my $DRIVER = "Freetds";
my $dbh = DBI->connect($DSN,$uid,$pwd) or die "Coudn't Connect SQL";
$fund_code=103;
$mobile_number='7702004546';
$city_address='Karvy Computershare Private Limited,2E / 23, Jhandewalan Extn New Delhi - 110055';
$sql_query4 = "INSERT INTO [192.168.14.28].CommunicationLog.dbo.sms_processedfeeds (pf_Fund,pf_trtype,pf_acno,pf_ihno,pf_Mobile,pf_msgtrtype,pf_msg,pf_entdt ) VALUES (?,?,?,?,?,?,Getdate())";
$sql_sms = $dbh->prepare($sql_query4);
$sql_sms->execute($fund_code,'CALL', 0, undef, $mobile_number, 'CALL',$city_address,);
Can't call method "execute" on an undefined value at M_CHECK_SMS_STD CODE.pl line 19
Comment