Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: file search

by wfsp (Abbot)
on Mar 07, 2011 at 17:42 UTC ( [id://891868]=note: print w/replies, xml ) Need Help??


in reply to Re^3: file search
in thread file search

Can we use computers?
johngg++
Recursion is the only...
One way might be push all the dirs onto a @stack as you find them and shift them off one at a time to process them. Then you can convince yourself you're not using recursion which I find easy to do. :-)

Replies are listed 'Best First'.
Re^5: file search
by anna_ajay (Initiate) on Mar 08, 2011 at 12:31 UTC
    thanks for the reply john. I know, it is quite easy to do with recursion and File:FInd, but as i said, it was an assignment might be they are checking my capability. what do yo say, if we do a grep in the directory and stack the list and then taking the directory and processing the file.

      If "they" are checking your capability, why are you trying to be dishonest about it by asking others to do your work for you?

        I am learning from your experience, I am not asking the people to do my work. Just asking reference, not asking to write the whole program for me. I believe learning is not through reading and trying, that is through sharing experience from people. Asking questions and getting answers. I am learner of Perl, just a beginner. SO I was just asking these kind of questions to understand more.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://891868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-24 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found