S_Shrum has asked for the wisdom of the Perl Monks concerning the following question:
Urgh! I've been working on this for too long. All I want is a filename array minus '.', '..', and any folders. This was my last attempt: @files = grep { !/^\./ && -f } map {$rootPath . $input->param('path') . "/" . $_ } readdir DIR;
Help! TIA
======================
Sean Shrum
http://www.shrum.net
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Need help with creating a filename only array
by BrowserUk (Patriarch) on Jul 27, 2002 at 07:01 UTC | |
Re: Need help with creating a filename only array
by chromatic (Archbishop) on Jul 27, 2002 at 06:53 UTC | |
Re: Need help with creating a filename only array
by flocto (Pilgrim) on Jul 27, 2002 at 07:02 UTC | |
by S_Shrum (Pilgrim) on Jul 27, 2002 at 07:15 UTC | |
by flocto (Pilgrim) on Jul 27, 2002 at 07:20 UTC | |
by S_Shrum (Pilgrim) on Jul 27, 2002 at 08:44 UTC | |
Re: Need help with creating a filename only array
by George_Sherston (Vicar) on Jul 27, 2002 at 09:54 UTC |