Re: libwww-perl-5.00
Martijn Koster (m.koster@webcrawler.com)
Wed, 3 Jul 1996 09:26:53 -0700
At 12:48 PM 7/3/96, Gisle Aas wrote:
>> Either way I'd
>> like an option to turn this html-parsing behaviour off when doing a
>> content().
>
>What do you mean by "when doing a content()"?
Well, the content() call does the HTML parsing, which is what I want to be
able to switch off.
>To make this an option could easily be handeled in the same way as we
>pass 'use_alarm' and 'timeout' from $ua to the $protocol module.
That sounds good.
>Perhaps we need a better way to pass this information as the number of
>things to pass over grows?
Maybe, but I think it's too early to worry about.
>> What do you think?
>
>I think it is too bad perl does not have a "real" exception mechanism,
yup.
>or perhaps that perl should not allow users to trap exceptions with
>$SIG{__DIE__} when there is and eval {} waiting to catch it.
unless it was set inside that eval... see "real exception mechanism"
I guess :-)
>I also
>think that if you use $SIG{__DIE__}, then you get what you deserve :-)
Well absolutely :-) The reason it was there was to format die messages
as HTML and send it out from the CGI script; couldn't really do that
differently.
>We also throw exceptions (aka die) within the LWP::Socket module.
>Don't you have problems with that?
Yes, that occured to me after I sent my message...
-- Martijn
Email: m.koster@webcrawler.com
WWW: http://info.webcrawler.com/mak/mak.html