Whether you find a way to use WORD_LENGTH directly or not, you might wish to ensure that the regex is compiled exactly once. /o is your friend.while ( $target_letters !~ /^[a-z]{$Word_Length}$/i ) { ...
In reply to Re: subroutine within regex quantifier?
by dws
in thread subroutine within regex quantifier?
by hagen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |