in reply to Re: Why can't I figure this out?????
in thread Why can't I figure this out?????

Or just
foreach my $fileline (<$dir/*>) { }

since globbing already removes dotfiles and includes the path.

Personally, I'd use Path::Tiny or Path::Class before touching opendir.