demerphq wrote:
>> FWIW, you avoid the infinite recursion by calling CORE::glob() instead
>> of just
>> glob().
>>
>> sub _fixed_glob {
>>     ...
>>     CORE::glob(...);
>>     ...
>> }
>>
>> BEGIN {
>>     local *CORE::GLOBAL::glob = \&fixed_glob;
>> }
> 
> That local doesnt seem right. Are you sure about that?

You're right, no local.  But it does have to be in a BEGIN block.

Reply via email to