http://www.perlmonks.org?node_id=1016976


in reply to Re: Using grep and glob to find directories containing file
in thread Using grep and glob to find directories containing file

Thanks 7stud for all your patience and persistence in helping me figure out this strange/unexpected behavior.

It seems to me that this is a hidden and potentially significant time-bomb type issue since glob is a core function and it's not inconceivable that people will bury it somewhere in a module where it is used in static context. Then it will lay there waiting until one day someone calls the module from a loop and gets wrong results.

This would be bad enough if the behavior were fully or even adequately documented. But currently, the documentation at best alludes rather obscurely to the behavior that can lead to an issue in such a context.

Do people agree this is a valid issue that needs addressing either in 'fixing' glob or at least in documenting and warning about the behavior?

If so how does one properly report such an issue?