in reply to How do I read files from a folder and place them into a list?
my @files = <*>; [download]
my @files=(); while (<*>) { push (@files,$_) if (-f "$_"); } [download]