in reply to Re: Re: opening all files in a directoryin thread opening all files in a directory
The most straightforward is:
@files = grep { $_ ne "." and $_ ne ".." } readdir DIR; [download]
-- Randal L. Schwartz, Perl hacker