use File::Find::Rule; my @mlc_files = File::Find::Rule->file->name( 'mlc' )->in( 'new/' );