in reply to Read from directory list...

You should have a look at opendir and readdir. I frequently have code that looks like:

opendir DIRHANDLE, 'directory-name' or die "Can't opendir: $!"; my @plain_files = grep( !/^\./ && -f, readdir( DIRHANDLE ) ); closedir( DIRHANDLE );

I find it really handy to use grep to pick out the things I want and go from there. If you want to recurse into sub directories and/or do other fancy stuff, have a look at File::Find.

Replies are listed 'Best First'.
Re^2: Read from directory list...
by oblate kramrdc (Acolyte) on Feb 06, 2007 at 18:08 UTC
    Thanks a lot!