Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chromatic (983)

  (email not shown publicly)

Blog Information [] Profile for chr0matic []

Journal of chromatic (983)

Saturday October 07, 2006
04:08 PM

Fixing glob() to Work with Iterators

[ #31249 ]

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.


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.