in reply to Re: remove files starting with white from its folders and sub folders using perl?
in thread remove files starting with white from its folders and sub folders using perl?

How i can give opendir it will read only the respected directory location.Here i want to read all folders and sub folders
  • Comment on Re^2: remove files starting with white from its folders and sub folders using perl?

Replies are listed 'Best First'.
Re^3: remove files starting with white from its folders and sub folders using perl?
by 1nickt (Canon) on Apr 17, 2017 at 11:13 UTC
      That will convince OP
Re^3: remove files starting with white from its folders and sub folders using perl?
by marto (Cardinal) on Apr 17, 2017 at 11:40 UTC
Re^3: remove files starting with white from its folders and sub folders using perl?
by marinersk (Priest) on Apr 18, 2017 at 13:17 UTC

    How i can give opendir it will read only the respected directory location.Here i want to read all folders and sub folders

    Sometimes there isn't a way to do everything at once and you have to write code to perform the logic.

    Of course, as 1nickt pointed out, there are modules out there which have already coded the logic, so you can do it all at once.

    If you are constrained (for real or even if only in your imagination) from using a module, you'll need to write the code, and use of opendiris prescribed. (Hint: You'll have to do a loop, and recursion is usually employed as well.)