Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Parse for a name after a keyword search in all the files, given directory as input

by choroba (Cardinal)
on Feb 17, 2017 at 08:36 UTC ( [id://1182191]=note: print w/replies, xml ) Need Help??


in reply to Parse for a name after a keyword search in all the files, given directory as input

> all the files recursively

There's no recursion happening in the code. To use recursion, you have to move the code to a subroutine, and call that subroutine from itself (when entering a subdirecory). Another approach would be to shift from @allfiles in a while-loop instead of foreach , and pushing the new directories back to @allfiles for further processing.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-28 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found