in reply to Re: What makes File::Find's interface so commonly hated
in thread What makes File::Find's interface so commonly hated

There are other issues. F.ex., with a GUI app, the callback interface is a problem as you need to be able to keep the app responsive while scanning potentially huge directory trees. Yes, it’s possible even with the callback interface, but it’s a right pain. The natural way to do this would be to launch an iterator and then collect results whenever the UI is idle; File::Find forces you to instead poll the UI for events within your wanted function, which breaks separation of concerns and doesn’t work in all scenarios.

Makeshifts last the longest.

  • Comment on Re^2: What makes File::Find's interface so commonly hated