>>>>> "KS" == Kripa Sundar <[EMAIL PROTECTED]> writes:
>> though i didn't figure out your 'bug', i disagree with your calling it a
>> bug. it is documented behavior ...
KS> No, it is not documented. The fact that it is an iterator is
KS> documented, but not the fact that the iterator will ignore
KS> argument changes until it "runs out of" iteration values.
from perlop:
A (file)glob evaluates its (embedded) argument only when it
is starting a new list. All values must be read before it
will start over. In list context, this isn't important
because you automatically get them all anyway. However, in
i call that documented :)
KS> This is the classic programming technique called a "workaround". :-)
nope, it is causing the iterator to be reset each time you call glob.
KS> If I want to grok "~someone/some/stuff", glob() is my only
KS> choice, because readdir() doesn't work for "~someone".
use getpw* and look it up diectly. not hard at all. i recall some
related examples in the perl cookbook trying to find your home dir.
uri
--
Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm