in reply to How to Generate text file by picking up string from other text file line by line

Welcome to the Monastery!

Here's how you should have formatted your post:

I have taken the liberty of capitalizing the first words in a sentence, and capitalizing 'I', as is common when writing English.

The purpose of this community is to educate folks who are interested in Perl. As such, we are glad to help anyone who has posted some code -- but with which they're having a problem.

We're not going to solve the problem for you -- you need to make solid effort first, showing us how you solved the problem, and where you got stuck.

Good luck!

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.