#!/usr/bin/perl -Tw use warnings; use strict; # From a bug found by Aaron Patterson #Full context and any attached attachments can be found at: # #Here's a snippet of code to repro the bug, it produces an 'Illegal instruction' error use Test::More tests=>3; BEGIN { use_ok( 'HTML::Tidy' ); } use strict; my $html = do { local $/; }; my $tidy = new HTML::Tidy; isa_ok( $tidy, 'HTML::Tidy' ); $tidy->ignore( type => TIDY_INFO ); $tidy->clean( $html ); my @mess = map { $_ ? $_->as_string() : undef } $tidy->messages(); pass( 'Ended OK' ); __DATA__