in reply to How to Simply Search a Web Site?

My first thought is that if you're just demoing it in the first instance, it might be easier just to use a free site-search facility, like the one offered by Google. OK, so you have to suffer some branding, but it's very easy to roll out for prototype purposes.

I definitely wouldn't try and write something from scratch; the rules that make a search work are surprisingly complex; it might look like a simple =~ m/$searchword/, but any search engine has plenty of things to consider like:

For a good, free, open implementation of searching, consider HT://dig which isn't in Perl, but is GPL'd, and widely used in academic environments. It can index an HTML site and search its index fast and effectively.

If you're really keen to do it yourself in Perl (it's an interesting project to do), there's plenty of modules on CPAN which might be useful, particularly under Text:: (eg Text::Query), and possibly Lingua:: (eg Lingua::Stem). Since you've got the site source in XML, it should make generation of index of meaningful content much easier.

A

it's raining here