in reply to Re^4: writing the finding result into a file.txt
in thread 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! :)
  • Comment on Re^5: writing the finding result into a file.txt