Think about Loose Coupling | |
PerlMonks |
Re: Loop through all directory and files and linesby 1nickt (Canon) |
on Oct 18, 2018 at 13:32 UTC ( [id://1224233]=note: print w/replies, xml ) | Need Help?? |
Hi, please post an SSCCE. The code you have shown does not compile. It certainly looks as if your solution does not need to be this complicated, but it's hard to know since the code is incomplete. Your problem description is also unclear. "I want to go into first directory/i/j/*" -- this path does not look like a directory. If you haven't yet done so, take a look at the module I recommended in your previous thread, Path::Iterator::Rule. Or another module by the same author, Path::Tiny, which provides the handy visit() method. The following should do what you want:
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|