to avoid reading . and .. into the array.@Files = grep /\w/, readdir(DIR);
cLive ;-)
Update:d'oh - thanks Randal.
Appendum to appendum... "assuming your file names containword chars".
In reply to Re: Re: opening all files in a directory
by cLive ;-)
in thread opening all files in a directory
by newatperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |