in reply to Please find out the mistake in substitution function in the code??

Yet another thread? Really?

So I ask again: How is this problem different from your other threads?

Please correct the mistakes in the code..

You seem to think of perlmonks as a code writing service. It isn't. You were told how perl helps you finding bugs: Basic debugging checklist, Re: How to insert the content of a file into another file before/after a pattern match?


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)