Perl: the Markov chain saw | |
PerlMonks |
Re^3: Using grep and glob to find directories containing fileby Corion (Patriarch) |
on Feb 04, 2013 at 16:49 UTC ( [id://1016977]=note: print w/replies, xml ) | Need Help?? |
I think the problem is most similar to the problem of keys (not) resetting the iterator over a hash. I guess that the best solution is to not call glob in scalar context at all. Most likely, part of the documentation of keys can be adapted to be added to the glob documentation. I would open a bug report using the perlbug utility, best together with a proposed documentation patch that cautions against using glob in scalar context.
In Section
Seekers of Perl Wisdom
|
|