in reply to Getting a list of directories matching a pattern
use File::Find::Rule qw/ find rule / ; my @dirs = find( directory => maxdepth => 1, name => qr/tomcat_\d\d\d\d_\d\d/, )->in($startdir); [download]