Bad argument while running the program
- From: RadhaKrishnan.Danaram@xxxxxxxxxxxxx (RadhaKrishnan Danaram)
- Date: Tue, 21 Feb 2006 11:46:28 +0530
Hi,
I have written a PERL script to connect to TERADATA. While executing the
script, it throws an error as below mentioned,
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at
D:/Perl
/lib/Socket.pm line 373.
Can anyone help me to resolve this error. The script we have written is
given below,
use DBI;
use strict;
my $driver="Teradata";
my $server="<STDIN>";
my $database="test";
my $url="DBI:$driver:$database";
my $user="<STDIN>";
my $password="<STDIN>";
my $dbh = DBI->connect($url,$user,$password) or die
"Failure!\n";
print "Success!\n";
$dbh->disconnect();
Thanks & Regards,
Radha Krishnan
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
- Prev by Date: Re: Strange error when doing insert into DB
- Next by Date: Re: Strange error when doing insert into DB
- Previous by thread: DBD::Sybase and IQ anomaly.
- Next by thread: How to Populate Drop-down list Dynamically.
- Index(es):
Relevant Pages
|