Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Re: Show count before data outputby Tomte (Priest) |
on Jun 23, 2003 at 19:53 UTC ( [id://268298]=note: print w/replies, xml ) | Need Help?? |
I should read posts more carefuly before answering, your use of File::Find was totaly unnoticed by me. You can't pass return values through the call of find, use a global variable instead, as you originaly did. Here a slightly modified version, that searches use lines in .pl files. Notice that I slurp the file and use grep to find the matches, I think it looks more like perl this way. And by the way: I would realy like to know, for what purpose you wrote this code, as it seems to me, if you had posted that, someone could come up with a more proper solution, just a humble guess... Oh, and as a further note: proper, read: consistent, indenting of code is most welcome here ;-)
regards, Hlade's Law:
If you have a difficult task, give it to a lazy person --
In Section
Seekers of Perl Wisdom
|
|