Do you have alot of perl docs which you have saved, and would like to search thru them, with nice "results pages" full of clickable links? Here is a good solution.

Get the monkey http daemon -> monkey It's a lightweight httpd daemon that runs cgi on any port you want. It defaults to 2001. Set it up in your home dir to use /home/yourusername as it's root. I installed it to /home/user/monkey

Then install Perlfect ->Perlfect Install it to the monkey cgi-bin. It has a setup script which works perfectly, just answer the questions. A tip: Don't run the indexer during the perlfect install, as it will index your whole homedir, and take forever. What you want to do is go into ~/monkey/cgi-bin/perlfect/search/conf/no_index.txt and edit it. What I did was dump all the directories in my homedir to no_index.txt with ls, then REMOVE the directories which you want indexed. Then run the indexer.pl script.

Now you just need to copy the search.html from the templates directory, to your /home/user/search.html and edit it's link to point to search.pl.

Start the monkey httpd daemon and point your browser to "http://127.0.0.1:2001/search.html and search all your saved files.

I wish O'reilly had used this search script on their Perl CD Bookset, instead of that crappy java search engine, which won't work with mozilla.


In reply to Searching locally with Perlfect with Monkey Httpd by zentara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.