MacPerl5.07rlm vs LWP/PaulSchinder

Brad Cox (bcox@gmu.edu)
Fri, 15 Mar 1996 11:31:22 -0500


Using MacPerl5.07rlm and the LWP package Paul Schinder provided in response
to an earlier problem.

http://perl.com/perl/wwwman/index.html sez

>get($url)
>       This function will get the document identified by the given URL.
>The get() function  will return the document if successful or 'undef' if
>it fails.

do I tried

use LWP::Simple;
$url="http://rembrandt.erols.com/mon/cgibin/sync.cgi";
$doc = get $url || die "Couldn't get $url";

and I got

# The Unsupported function alarm function is unimplemented.
File 'Dock:Pgm (Dock):MacPerl 5.07rlm:LWP:lib:LWP:UserAgent.pm'; Line 240

(Great error message there, Matthias! I'll add it to my collection! ;-)

Should I be overriding alarms as suggested below?

> By default the library uses alarm() to implement timeouts, dying if the
>timeout occurs. If this is not the prefered behaviour or it interferes
>with other parts of the application one can disable the use alarms. When
>alarms are disabled timeouts can still occur for example when reading
>data, but other cases like name lookups etc will not be timed out by the
>library itself.

--
Brad Cox; bcox@gmu.edu; GMU Pgm on Social and Organizational Learning
(703) 968-8229 Fax (703) 934 1578; Web http://www.virtualschool.edu/mon
The Middle of Nowhere Web, a project with paradoxical goals