Here’s a quick snippet of code to build a list of files from a folder using Perl:
my $ext = '_plog.txt'; opendir (DIR, ".") || die "Can't open directory: $! n"; my @flist = grep (/$ext$/, readdir (DIR)); closedir (DIR);
If technology was easy and always worked right the first time, you wouldn’t be reading this. |
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Sep | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
Here’s a quick snippet of code to build a list of files from a folder using Perl:
my $ext = '_plog.txt'; opendir (DIR, ".") || die "Can't open directory: $! n"; my @flist = grep (/$ext$/, readdir (DIR)); closedir (DIR);