re: alarm function in UserAgent.pm

Paul Schinder (schinder@pjstoaster.pg.md.us)
Mon, 01 Apr 96 21:44:17 -0500


Saima Sami <ssami@vax2.cstp.umkc.edu> writes:
} Hi,
}    I am working with Perl 5.001m for Windows NT. I have installed
} libwww-perl 5b6 on my computer. Now I am running test to make sure that
} everything works fine. Here is the biggest problem I have come across. The
} alarm() function is not implemented for the NT version. But useragent.pm
} uses it, as do other classes. 
}     I am fairly new to perl. Modifying perl programs is one thing but
} modifying Object-Oriented perl libraries for NT is quite a different animal.
} I shall appreciate any help I can get from anyone who has adapted the lib
} for NT.
}    Thanks in advace.

I haven't adapted it for NT (heaven forbid!), but I do use 5b6 regularly
with MacPerl.  MacPerl doesn't have alarm(), either.  With
libwww-perl-5, it's trivial to turn all the alarm()'s off in any script that
uses LWP:

$ua = new LWP::UserAgent;
$ua->useAlarm(0);

This is documented.  You should run the *.pm through pod2html.

} 
} --saima
} administrator@cei.haag.umkc.edu 
}    
} 
}                 \=/,
}                 |  @___oo
}       /\  /\   / (___,,,}      
}      ) /^\) ^\/ _)
}      )   /^\/   _)            
}      )   _ /  / _)             
}  /\  )/\/ ||  | )_)            
} <  >      |(,,) )__)          "The Age of Chivalry is gone;
}  ||      /    \)___)\           that of sophisters, economists,
}  | \____(      )___) )___        and calculators has succeeded."
}   \______(_______;;; __;;;                        -EDMUND BURKE    
} 
} 
---
--------
Paul J. Schinder
NASA Goddard Space Flight Center,
Code 693, Greenbelt, MD 20771 USA
schinder@pjstoaster.pg.md.us