my @files = grep { my $f = "$dir/$_"; -f $f && $f =~ m/\.dat$/ } readdir($dh);
In reply to Re^4: Get fullpath of file using grep
by hotpelmen
in thread Get fullpath of file using grep
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |