in reply to how to extract script output in new text file ?
$ perl your_script.pl > report.txt [download]