Adds perl

I really wanted to avoid it, but sed does not work well with multi-line patterns and awk is a bit better, but still awk-ward (pun intended)