Hi everyone,
I'm stumped on this File::Find module, I'm getting an error and not sure why. I'm trying to run a find all files under a directory, this is just the first part of the script.
my (%master, %slave); my $confDir = "/opt/drutt/ca/conf"; print "Running local find for master \n"; find( sub { -f && $master{$_} = $File::Find::name }, $confDir);
The error is this:
Can't modify logical and (&&) in scalar assignment at AuditConf.pl lin +e 16, near "$File::Find::name }" Execution of AuditConf.pl aborted due to compilation errors.
Help.
Thanks,
Iconx
In reply to File::Find Problem by Iconx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |