Subject: | few text-highlight-0.04 bugs |
Date: | Mon, 19 Feb 2007 14:43:19 +0200 |
To: | bug-text-highlight [...] rt.cpan.org |
From: | "algirdas" <algirdas [...] perl.lt> |
Hello,
the code i use:
use Text::Highlight 'preload';
my $th = new Text::Highlight( wrapper => "<pre>%s</pre>" );
$turinys = $th->highlight( 'Perl', $turinys );
it works fine, but there are few bugs i would like to mention,
so maybe you could fix them:
1. the $#variable problem:
example: $slapt .= $simbol[ int( rand $#simbol ) ];
problem: $#variable returns nuber of @variable, and it's not a comment.
2. s/ ??? / problem:
example: s/<a href="http:\/\/blabla.com//eg;
problem: there is a ", but it's inside regexp, and it's not a string,
when such happens, module looks for next ", and it can be far..
thanks for your time, hope you respond me, it's a good idea module, and useful
one.
--
http://perl.lt