Stories
Slash Boxes
Comments
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)

chromatic
  (email not shown publicly)
http://wgz.org/chromatic/

Blog Information [technorati.com] Profile for chr0matic [technorati.com]

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.

Pity.

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