in reply to Writing Out Binary Files

perldoc -f pack ??

If you would be a bit more specific about what you mean by

convert ascii data files into binary output files
you will probably get more helpful responses...

--
3dan