in reply to find files ina Directory while not changing to it

Hi, just try this

my @files = grep{/\.file$/} readdir(DIR2);