in reply to Re: Re: Need help with creating a filename only array
in thread Need help with creating a filename only array

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Need help with creating a filename only array
by S_Shrum (Pilgrim) on Jul 27, 2002 at 08:44 UTC

    Damn that was simple. I knew I was overthinking this thing. Perfect. Thanks again.

    ======================
    Sean Shrum
    http://www.shrum.net