I have a perl script that I wrote to search for files present in Windows folders recursively. I enter the search text as an argument to the runl perl script to find a file with that text in it. The perl script looks like this:
use Cwd; $file1 = @ARGV[0];
But this is not a recursive search for all subdirectories. I know that glob does not match recursively. Therefore, we tried to use the File::Find module and the find(\&wanted, @directories); function find(\&wanted, @directories);
But I got an error find() undefined. From what I read from the help, I thought that the find() function is defined by default in a Perl installation, with some basic code for finding folders / files. Is not it?
Questions in the above perl script, how can I find files / folders recursively?
Second questions, I found that perldoc <module> help has no examples about using a specific function in this module, which would make it clear.
Can you point out some good help / document / book for using different perl functions from different perl modules with explicit examples of using these module functions.
goldenmean
source share