Guest_imported
New member
- Jan 1, 1970
- 0
Can someone please explain to me why I am getting this error;
Software error:
Can't call method "autoflush" on an undefined value at submit new.cgi line 68.
when using the following code;
With the following 'use' options at the top of the script;
Andy
Software error:
Can't call method "autoflush" on an undefined value at submit new.cgi line 68.
when using the following code;
Code:
$host = "[URL unfurl="true"]http://www.google.com/";[/URL]
$get = "addurl?type=submit&q=$url&dq=";
$remote = IO::Socket::INET->new( Proto => "tcp",
PeerAddr => "$host",
PeerPort => "http(80)",
);
unless ($remote) { }
$remote->autoflush(1);
print $remote "GET $get HTTP/1.0" . $BLANK;
With the following 'use' options at the top of the script;
Code:
use IO::Socket;
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use LWP::Simple;
use HTTP::Request;
Andy