Oh.. Well, I tried to stick as close to your code as possible. This should work for you though:
@files = grep { -f "$dir$_" } readdir (DIR);
Simple, eh? ;)
Regards,
-octo
In reply to Re: Re: Re: Need help with creating a filename only array
by flocto
in thread Need help with creating a filename only array
by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |