print "We are about to go into that ugly module...\n"; { local *STDOUT; open( STDOUT, ">/tmp/junk.stdout" ); print "This goes to junk.stdout\n"; } print "Okay, that mess is over with.\n";