Hi,
use strict; use warnings; open my $fh, '<', 'source.txt'; my @files = <$fh>; chomp @files; print join "\n", grep { -e $_ } @files;
Assuming the source file contains the full path to the files
Regards,
In reply to Re: compare directory list with a text list of filenames
by fmerges
in thread compare directory list with a text list of filenames
by wanlanman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |