Otherwise you may filter out directories and keep only files:
opendir my $dh, $dirname or die "could not open $dirname $!"; print "$_\n" for grep { -f $_ } readdir $dh ;
In reply to Re: Dots appearing when opening a directory
by Laurent_R
in thread Dots appearing when opening a directory
by The_Last_Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |