in reply to subroutine within regex quantifier?
So, you could write your regex in one of these ways:"@{[ reverse 1 .. 3 ]} go!" # reverse 1 .. 10 is in list context "2 + 2 = ${\( 2 + 2 )}"; # 2 + 2 is in scalar context
Although they might be hard to read... :)/^[a-z]{@{[ WORD_LENGTH ]}}$/i /^[a-z]{${ \WORD_LENGTH }}$/i
|
|---|