From: | "John Scoles" <scoles [...] pythian.com> |
To: | <bug-Text-Context [...] rt.cpan.org> |
Subject: | Is this a bug? |
Date: | Wed, 14 Dec 2005 14:02:57 -0500 |
I was attmepting to do this with you package
foreach $key (@temp_array)
{
my $snippet = Text::Context->new($key, @keywords);
$snippet->keywords(@keywords);
print "<BR>Found string = $key";
print "<BR>".$snippet->as_html([-start=>"<B>",-end=>"</B>"]);
}
temp_array is a simple array of strings
two things do not work here
1) it dose not search through all of the items in @keywords, If I use a single word or words like keywords('test','test 33') this workd. but not an array like @x=['test','test 33']
2) enven when I get it to return my snippet I do not get <B>test<B> I always get (<span class="quoted">).
Cheers
John Scoles