Add perl solution to challenge 31