in reply to Faster replacement of sed commands..

Hi,

you're using Perl in a very "shellish" way. What I mean is you're using the backtick operator very often which creates a subprocess doing the shell command. This is expensive. You can do all the tasks directly in Perl reducing the amount of subprocess creations.

In your case: When you know that the two sed commands are what costs most of the time: Why have you two seperate calls to sed? In every sed command you have multiple substitute calls. Why don't you put all of them in one sed call?

By the way: What is the sleep(100) good for besides waisting time?

Regards
McA