|Pathologically Eclectic Rubbish Lister|
Re^4: File::Glob infinate loop with while loop unlike core glob functionby Anonymous Monk
|on Jul 31, 2011 at 21:10 UTC||Need Help??|
When I look at File::Glob, I don't see it promising to do "while magic".
I never claimed it promised to do while magic, surely you can see that.
and it is not "trivial" to modify that behavior now.
When I used "trivial" , it was obvious I was talking about the effort (copy/paste) and not the politics;
But yes, even the politics are "trivial" because File::Glob is a module, it already changes behaviour , it can do so again
Cwd/File::Spec have changed behavior since 5.6.0, so can File::Glob; it doesn't have to live in CORE, it can become dual-lived like Cwd
That could break existing code, and the porters are notoriously (and justifiably) reluctant to do that.
If fixing an oversight breaks existing code, its worth any potential fallout
It doesn't even have to break existing code, just make it do the right thing via ':globDWIM' or ':globwantarray' or ':globscalar' .. whatever tag makes most sense
And AFAIC :) code that relies on the existing behaviour of a-list-in-scalar-context is unimportant and/or already broken ;) so it won't be affected much by a change :D