John W. Krahn wrote: > > Michael Weber wrote: > > > > Been to CPAN enough that I'm seeing crosseyed. > > > > What I want to do is to write a program that will return a list of > > files named *.edi which are found in <some-directory-base>/*/files_in > > directory and then process each file one at a time. > > > > Now for the kicker. It needs to run now on a Win32 platform, and > > in a few months on a Linux platform with as few changes as possible. > > > > In a linux shell script, it would look something like this: > > > > for file in $base_dir/*/files_in/*.edi > > do > > <process $file> > > done > > > > Am I looking for a module to return file names when it is a coding issue? > > I don't know if this will work on Windows but on Linux you can use glob > to do this. > > my @files = glob "$base_dir/*/files_in/*.edi";
Yes John, that's also fine under Windows. /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]