in reply to Re^3: File::Glob infinate loop with while loop unlike core glob function
in thread File::Glob infinite loop with while loop unlike core glob function
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.
You can also see that there no magic involved (just wantarray) if you UTSL, GLOB_NOMAGIC option notwithstanding.
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: File::Glob infinate loop with while loop unlike core glob function
by jpl (Monk) on Aug 01, 2011 at 13:55 UTC | |
Re^5: File::Glob infinate loop with while loop unlike core glob function
by jpl (Monk) on Aug 01, 2011 at 10:45 UTC |