Kevin Ward <[EMAIL PROTECTED]> writes:
> I want to make it so that it only highlights the first instance of a term
> in a page, so what I did was to delete the term from the hash after it has
> been highlighted.
The trick, surely, is not to delete entries from the global hash, but
add entries to an "I've seen this already" hash local to that page, ie
my %seen;
foreach $word (...) {
next unless exists $Glossary{$word};
next if exists $seen{$word};
$seen{$word} = 1;
...
}
* Dave Mitchell, Operations Manager,
* Fretwell-Downing Facilities Ltd, UK. [EMAIL PROTECTED]
* Tel: +44 114 281 6113. The usual disclaimers....
*
* Standards (n). Battle insignia or tribal totems