my $directory; @files = grep {-f "$directory/$_" && /\.dat$/i} readdir DIR;
I would like to get: c:\temp\file1.dat
Right now I just get: file1.dat
In reply to Get fullpath of file using grep by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |