in reply to Re^4: Counting iterations of 1 and 0
in thread Counting iterations of 1 and 0

Nope, print is, or should be doing the job - looks like there might've been 2 mistakes -, try print $fh "$_\n" for @count;
A user level that continues to overstate my experience :-))