You're missing the closing brace } of the if block, that's all.
In reply to Re^3: Vowel search by Jim in thread Vowel search by Noob@Perl