Think about Loose Coupling | |
PerlMonks |
Need help on perl Expect Moduleby sriram83.life (Acolyte) |
on Apr 23, 2014 at 04:55 UTC ( [id://1083273]=perlquestion: print w/replies, xml ) | Need Help?? |
sriram83.life has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I want to write a script that extracts files in directories and their subdirectories recursively.I have used File::Find module to use wanted() subroutine to extract files recursively.While it recursively extracts,some duplicate files are appearing and asking for prompt to replace or rename. Here is the example prompt.
Every time it appears,script has to send "A" reply to the prompt and it has to continue as i need to extract hundreds of files and get the required file.Can any one give me suggestions on how to write this using perl Expect? Here is my code which uses File::Find module to find files recursively and perform some actions.
Your help is much appreciated.
Back to
Seekers of Perl Wisdom
|
|