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

[MacPerl-Modules] Nasty error with HTML::Parser 3.07



I just doewnloaded the new version of HTML::Parser (3.07).

When running options.t, I get an error:

	Modification of a read)only value attempted.
	File '...:site_perl:HTML:Parser.pm'; Line 77

That line reads (in context):

	while(my($option, $arg) = each %arg) {
	    if(...) {
	        ...
	    } elsif($option =~ /^(text|start|end|...)$/) {
	        ...
	    }
	}

Line 77 is the "elsif" line. $option is an ordinary variable, and this
is an ordinary regex match, not a s///.

I close MacPerl, and run the script again, and this time, the error is
not fatal (test 5 fails, but so what). And again: again the same
message, but on a different line this time: line 12 of "options.t".

I suspect there is a serious bug in the XS part of the module.

What gives?

-- 
	Bart.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org