in reply to Printing information to tty
{ local *STDOUT; open( STDOUT, ">>/dev/tty" ); print "This goes to /dev/tty\n"; } [download]