Possible Duplicate:
How do I pass parameters to the File::Find subroutine that processes each file?
One can use Perl's File::Find module like this:
find( \&wanted, @directories);
How can we add a parameter to the wanted
function?
For example, I want to traverse the files in /tmp
extracting some information from each file and the result should be stored to a different directory. The output dir should be given as a parameter.