in reply to Re: Re: reading directories
in thread reading directories

I'm not sure exactly what you want to do....

Basically, you have all of your file names in the array @files. You can use a do...for loop

for (@files) { /\.txt/ && do { print; }; }

This prints the name of all text files.

for (@files) { !/\.txt/ && do { print; }; }

This prints the names all non .txt files (note negation)

<code> for (@files) { /^ignore?$/ && do { print; }; }

Will skip all filenames beginning with ignore.

You should be getting the idea. ~Hammy