[KinoSearch] Tutorial Indexer Script Recursion
mattrolf
mattrolf at me.com
Wed Aug 18 07:44:50 PDT 2010
I'm curious as to what would be the best way to go about making the indexer script in the tutorial recurse through the directories contained in a main directory. In my specific instance, I don't need to go more than one directory down, as everything is in top level directories.
I've tried globbing the directories at the start - making $uscont_source - @uscont_source = <path/*> or <path/*.html>, and then doing a foreach opendir on all of them (using the code provided) and pushing all the files onto a very large array. However, I then get into some trouble in the parsefile subroutine where it tries to turn the filehandles into path strings.
I can continue to work on the subroutine but I'm not sure if I'm even going about this the right way. Apologies as I feel this is more basic perl than Kinosearch. I wasn't sure where to start asking and thought this was as good a place as any.
Thanks for your help,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rectangular.com/pipermail/kinosearch/attachments/20100818/b89c1013/attachment.html
More information about the kinosearch
mailing list