in reply to Re: Regex fun
in thread Regex fun
It's simpler than that: The quantifier cannot be variable.This must mean something other than what it seems (to me) to mean:
shows that the ‘length’ of the quantifier can be given by a variable.$ perl -E 'my $quant = 2; "ab" =~ /.{$quant}/ and say "Matched"' Matched
In Section
Seekers of Perl Wisdom