in reply to Line by Line file processing

Welcome to PerlMonks. It's always best to show the code you tried, even if it doesn't work. It shows you care. For more advice on posting try reading How (Not) To Ask A Question and How do I post a question effectively?.