http://www.perlmonks.org?node_id=968573


in reply to Re: using sed buffers
in thread using sed buffers

I think his intention is to write it in Perl. After all, he's asking "this is what I do in sed, how do I translate it to perl".