Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of Terje Bless (758)

Sunday March 16, 2003
04:59 PM


use SGML::Parser;
my $p = Parser->new('t/invalid.html');
my $c = $p->parse();
print "Found $c errors.\n";

my $e = $p->getErrs();
for (@{$e}) {
  printf "Line %s, Column %s, Offset %s: %s\n",
    $_->{Line}, $_->{Column}, $_->{Offset}, $_->{Message};

All better now...

Saturday March 15, 2003
09:42 AM

How to Induce a Nervous Breakdown for Dummies...

Goal: A Perl XS interface to the OpenSP SGML Parser.


  • 0 knowledge of XS.
  • 0 knowledge of C++.
  • 0 knowledge of C.
  • 1 incredibly baroque code base horribly lacking in documentation.
  • 1 libstdc++ missing templates for OpenSP's "unsigned char" characters.

Good Luck!