Script: HTML/ASP search highlighter.  (366 bytes)

Author: Steve Combs, 1998 <scombs@usweb.com>

Usage:  perl -sp00F PROGRAM -s=word{,word_n} [-p] infile.html

Where:   -s specifies word(s) to search for 
         -p allows searching of partial words

Input is any html (or .asp) file. Output is the filtered 
text with found words highlighted, and <a name="_n"> and
<a href=#_n> links created to bounce the surfer to their
first and subsequent occurences.


The program/script is identical to my submission for category
one except that it has been packed into binary data and appended
as a <DATA> block to a short routine what does the unpacking.

The algorithm used to perform the script packing is very similar
to base64 decoding.

The 55 unique characters occurring in the script (plus a few
extra) are mapped to six bit binary values.

These values are then packed together into eight-bit characters.

Some additional translation keeps CR, LF and EOF chars from
gunking up the works. 

Though daunting on first glance, I'm afraid all my cleverness
can be laid bare with a simple "print $j" right before the eval.

-sac
