Jeff 'japhy' Pinyan wrote:

> ### ick -- use opendir() and readdir(), or glob()

Okay, sounds good. I'm not quite sure how to use glob. opendir works:
  opendir(DIR, "$dir");
  my @ls=readdir(DIR);
  closedir(DIR);

except I get the directories . and .. , which doesn't cut it for recursion.
Is there an easy way to parse those out or ignore them?
Can you give an example of how to do the globbing which also ignores . and ..
?

    Pete

Reply via email to