Errors on wwwhttp.pl
val@citi.doc.ca
Mon, 22 Jan 1996 23:10:11 -0500
I'am using wwwhttp.pl,v 0.15 1994/09/21 with MacPerl 5.0.51rm and I am
getting the error
# Undefined subroutine &main::AF_INET called.
File 'path:wwwhttp.pl'; Line 106
The actual line 106 is
$that = pack('S n a4 x8', &main'AF_INET, $port, $thataddr);
I have socket.pl in the lib and AF_INET is there. The program which calls
all this
is a very short test
require "www.pl";
local($content) = '';
local($headers) = '';
local(%headers) = ();
$method ='HEAD';
$url = 'http://macval.citi.doc.ca/';
$timeout = '90';
$respcode = &www'request($method, $url, *headers, *content, $timeout);
print "$respcode $content";
Have anybody a hint ?
Alex
val@citi.doc.ca