This is the wrong syntax.
What I would do is using a hash:
my %onefile= map { $_ => 1 } readdir(TMP); # Now every file in TMP is a key in the hash ... # and later we check like this: foreach $file (@allfiles) { if ($onefile{$file}) ...
In reply to Re: comparing folders
by morgon
in thread comparing folders
by grmshw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |