said it would be tough to do in sed. He didn't say he didn't understand sed.understands sed quite well. Which is why he uses Perl.