Port exercises to perl5