in reply to Re: Re: opening all files in a directory
in thread opening all files in a directory

But that'll miss the perfectly legitimate file named "!!!". Why are you ruling all of those out?

The most straightforward is:

@files = grep { $_ ne "." and $_ ne ".." } readdir DIR;

-- Randal L. Schwartz, Perl hacker