I'm trying to add HTML anchors to a lines of text. Quick example would be to take the line: "Search the internet using an engine like Google." and turn it into: "Search the internet using an engine like <a href="www.google.com">Google</a>."
In the past, I've contructed hash tables from text files having delimited key-value pairs (in the above "Google" would be the key). This has worked for me so far because I've been able to look at tokenized string phrases when determining if they exist as keys in the hash. Eg. if (defined $html_anchor{$token}) { print "<a href\"$html_anchor{$token}\">$token</a>"; } My problem now is that my text isn't tokenized, and my keys are still phrases. I'm not bound to using a hash, just my text file which has the delimited key-value pairs. I can do this in a hacking sort of manner but it'll be slow and inelegant. I apologize for asking for design template/suggestions rather than help, but since it's summer, my promise that it's not homework should add credibility (and I've not been to school for some time). Also, since it's summer, I've got time to read (and I don't mind schooling, having been removed from it for some time), so documentation pointers are just as useful. - Jamie p.s. This sort of ties into a previous post I did yesterday "Creating html source ...". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]