in reply to Get fullpath of file using grep
my $directory = '...'; opendir my $DIR, $directory or die $!; my @files = grep /\.dat$/i && -f, map "$directory/$_", readdir $DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get fullpath of file using grep
by jmacloue (Beadle) on Jan 28, 2015 at 15:18 UTC | |
by choroba (Cardinal) on Jan 28, 2015 at 15:25 UTC | |
by jmacloue (Beadle) on Jan 29, 2015 at 15:08 UTC | |
by hotpelmen (Scribe) on Jan 30, 2015 at 15:08 UTC | |
|
Re^2: Get fullpath of file using grep
by Anonymous Monk on Jan 28, 2015 at 14:48 UTC |