Keep It Simple, Stupid | |
PerlMonks |
Re: How do I read the contents of each file in a directory?by gube (Parson) |
on Mar 29, 2006 at 04:49 UTC ( [id://539872]=note: print w/replies, xml ) | Need Help?? |
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
|
|