|Think about Loose Coupling|
Questions on File::Findby hok_si_la (Curate)
|on Sep 15, 2005 at 22:39 UTC||Need Help??|
hok_si_la has asked for the
wisdom of the Perl Monks concerning the following question:
I supersearched some of the old File::Find related nodes and didn't find anything that really helped me understand my problem. I also skimmed over the docs a couple of times. I have a form that contains a muliple select called dirs, 7 checkboxes, and a text box. The form will invoke a script that will seach every file in every directory in dirs for occurences of certain strings. So for instance if my multiple select 'dirs' contains foo and bar, and use strict and use warnings are checked, then each File::Find::name is grep'ed for "use warnings" and "use strict". The results are returned to a hash of arrays. Example: %results(myscript.pl =>[warnings, strict]);.
I am trying to find out the best way to accomplish this algorithmically and how to use &wanted.
Here is the code I have so far...Any suggestions to clarify my mess would be appreciated,