in reply to match the name

Sounds like homework. :( Reading perlre will do the trick. A good hint here is that all the other "ap"s have something that "application" doesn't: a boundary instead of another letter. You'll also need to next unless or something so you only print if there was a match. Right now the match is irrelevant to the code flow because you're not doing anything with it.