in reply to begginer help running perl script
From perldoc -f open:
open STDOUT, '>', "foo.out"
The docs are your friend.