Help for this page
print "output file name: \n"; chomp($outfile=<STDIN>); open (DATA, "+>$outfile" ) || die;
sub countprog{ ... print DATA2 "results of this 2nd subroutine"; }