Fixing glob() to Work with Iterators

chromatic on 2006-10-07T21:08:54

I had the crazy idea this past week that overriding glob() to detect array and hash references and iterate over the appropriate values would work.

Overriding glob() does work (all hail use subs 'glob';), but looking at the op tree reveals that Perl stringifies the arguments within the angle brackets. There are ways to get around that, but if you're dealing with an object with overloaded stringification, you've just lost your quarter and the guy behind you gets to play now.

Pity.