Hello,  the while loop here still returns all the matching files.
Why??  It seems to me clear, from the discussion in the Camel book,
that <*.foo> should all the files when called successively, therefore,
here, the first call inside if () should return one file, and the rest
of the calls inside while () should return the remaining files.

if (defined(<*.foo>)) {
  while (<*.foo>) {
    print
  }
}

Thank you for any insight!  Mark


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to