[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Errors on wwwhttp.pl



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