in reply to Re^2: What makes File::Find's interface so commonly hated
in thread What makes File::Find's interface so commonly hated
As I said, this is certainly possible with a callback interface. What you've shown is a way to do that, but it's not using the standard next and last operators, so it's not quite as easy to follow or understand.
I should probably also note that I don't have a big problem with callback interfaces generally, nor with File::Find specifically. But I can certainly say in this case, one alternative is slightly nicer than the other.
|
|---|