in reply to Embedding perl in bash

I know that this is a Perl site, but is sed not up to the task?

--MidLifeXis