nkpgmartin has asked for the wisdom of the Perl Monks concerning the following question:
How can I narrow $file to only files with BLAH in the name?opendir(DIR, "$dir") || die "cant open dir.\n"; while (defined(my $file = readdir DIR) { do something; } closedir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(zdog) Re: How to pattern match filenames in readdir?
by zdog (Priest) on Jun 05, 2001 at 21:07 UTC | |
|
Re: How to pattern match filenames in readdir?
by chipmunk (Parson) on Jun 05, 2001 at 22:52 UTC | |
by tye (Sage) on Jun 05, 2001 at 23:05 UTC | |
|
Re: How to pattern match filenames in readdir?
by runrig (Abbot) on Jun 05, 2001 at 21:14 UTC | |
by nkpgmartin (Sexton) on Jun 05, 2001 at 21:41 UTC |