in reply to Redirect STDOUT to textfile?

Yes
perl foo.pl 1>1 2>2 perl foo.pl >file 2>&1