HTML::TokeParser::Simple

Ovid on 2002-11-15T19:10:25

I released a new version of HTML::TokeParser::Simple. Amongst other things, I realized that I had a serious design boo-boo. I blessed the returned tokens into the same class as the parser, thus allowing people to attempt to call parser methods on tokens. This was generating strange "Can't coerce ARRAY into HASH" errors. I was so close to the module that it never occurred to me that people would try and do this, but once they did, it was obvious what a dork I was being.

Tokens are now blessed into their own class and trying to call parser methods on them is fatal. One day, in the far future, things like that will be obvious to me. It's still not perfect, though. Naturally, after releasing it, I saw a few errors in the POD. On the plus side, this means that the next update will occur much sooner.