Even clearer would be:
my @files = grep { $_ ne '.' && $_ ne '..' } readdir(DIR);
yours,
Michael
Credit to Dominus' Program Repair Shop...
In reply to Re: Re: special directory entries
by herveus
in thread special directory entries
by cybermack72
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |