thanks bro , it is work done
but I have a small question :
why when we add a my to $dir , it is work done ??
and without it , it doesn't work?
please answer my small question .
thanks again for your helping :)
Comment on Re^4: writing the finding result into a file.txt
Try this tutorial: Use strict and warnings
Also read about scope and lexicals. Lot of stuff, but you need it to step further.
And most importantly: Have fun! :)