in reply to filtering my own output
You can make a script that reads from STDIN and pipe the two together:
perl script1.pl | perl log.pl [download]
The script log.pl reads the data spit out from script1.pl and does what it does with it.