in reply to subroutine within regex quantifier?
There's the experimental (?{...}) construct, but I can't think of a way to use that. Why not use length and a slightly different regex?
Seems clearer to me, as well as *possible*.while (length($target_letters) != WORD_LENGTH && $target_letters =~ /[^A-Za-z]/) { # prompt }
In Section
Seekers of Perl Wisdom