in reply to Can I open a specific file (eg. '.log') without knowing the actual name of it?
opendir(DIR,'.'); @all_logs = grep /\.log$/, readdir(DIR); for my $log (@all_logs) { # some processing } [download]