|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: copy scriptby kiruthika.bkite (Scribe) |
| on Mar 25, 2010 at 11:29 UTC ( #830832=note: print w/ replies, xml ) | Need Help?? |
|
find() function will call the wanted function for each files in the current directory and as well in the parent directory of the current directory. In the wanted function I have checked whether the file is .txt file or not. If it is .txt file then I have copied that file into the target directory. In find() function ,in the second argument you mention the directories to be searched.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||