sourav has asked for the wisdom of the Perl Monks concerning the following question:
It fell into an infinite wait until I manually stopped execution by Ctrl-C. However, commenting out the line of the post request, the script runs successfully... whats going wrong here? Can anyone please suggest what's the problem here and if there are any workarounds...use DBI; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $r = $ua->post('http://localhost/'); my $dbh = DBI->connect("dbi:Sybase:server=$server", '$uid', '$password +') || die "Bad db server, no donuts!"; my $sql = "declare \@rc int exec \@rc = myProcName " . "select \@rc"; $row = $dbh->selectall_arrayref($sql); print $row->[0][0], "\n";
I am using ActivePerl 5.6 on Windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using LWP::UserAgent and DBI together
by pajout (Curate) on Nov 09, 2009 at 15:15 UTC | |
by sourav (Initiate) on Nov 09, 2009 at 15:42 UTC | |
by sourav (Initiate) on Nov 09, 2009 at 15:50 UTC |