|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: How do I read the contents of each file in a directory?by gube (Parson) |
| on Mar 28, 2006 at 23:49 UTC ( [id://539872]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If you need to read only text file you can grep only .txt file. For eg: my @files = grep/.txt$/, readdir(DIR);
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||