NovMonk,
I would be really amazed if you did not have the s2p utility on your machine. Depending on your OS, it may be s2p.bat. In any case, there is no reason not to post your sed code to request help converting to perl. The key is to make sure you show some effort by showing what you have done so far.
Cheers - L~R