For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2007 > Re: File::Find again









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: File::Find again
Paul Lalli

2007-03-24, 3:58 am

On Mar 23, 5:59 pm, m...@blisses.org (Matt Herzog) wrote:
> I can see why people hate this module but I can't seem to let go.


There's nothing wrong with the module, and your question has nothing
to do with it.

> I point this script at a deep dir structure that has java .properties
> files sprinkled throughout it. Right now when I have my regex "hard coded"
> in the file, (.properties$) the search works fine. I need to be able to use
> the variable $searchstring at the command line. Is this even possible?


Of course it is. What's stopping you? Did you even bother *trying*,
or did you just assume it won't work?

> If not, is there a way to exclude directories from being returned?


perldoc -f -X
which, again, has nothing to do with File::Find.

Paul Lalli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com