The most straightforward is:
@files = grep { $_ ne "." and $_ ne ".." } readdir DIR;
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Re: opening all files in a directory
by merlyn
in thread opening all files in a directory
by newatperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |