Good afternoon everyone,
I recently started a project just for grins that will act as a flexible search engine for a web page. In the script I statically provide the top directory to begin searching in and I'm trying to have the script compare the contents of every file under that directory with the user's query and return the matches. It works great for the top level directory but I can't figure the best way to traverse through the rest of the directory's under the top level. I saw a node discussing File::Find but am unsure if that module would perform what I need. Does anyone have any other suggestions? I want the script to be intelligent enough to traverse through as many directory's and levels as it can find rather than setting a static number for it to stop.
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.