in reply to Re^3: Get fullpath of file using grepin thread Get fullpath of file using grep
my @files = grep { my $f = "$dir/$_"; -f $f && $f =~ m/\.dat$/ } readdir($dh); [download]