in reply to Re: Directory Listing to array
in thread Directory Listing to array

Actually while (my $file = readdir DIR) { print "$file\n" } will happily iterate over readdir. Try it. Also your grep solution will skip files like:

. .. .bashrc .any_other_unix_style_hidden_file/dir

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print