perl-unicode

Re: In-Band Information Considered Harmfult

1998-10-24 22:59:35
Benjamin Holzman writes:
my $dsd = new DSD 'foo.dsd'; # Indicates that <emph> tag is ignored
my $xml = "perl is <emph>terrific</emph>";
$dsd->apply($xml);
$xml =~ /perl is terrific/;  # Matches!

I would think

  $xml = $dsd->parse "perl is <emph>terrific</emph>";
  $xml =~ /perl is terrific/;  # Matches!

would have much more sense.

Ilya