I\'m writing an abstraction function that will ask the user a given question and validate the answer based on a given regular expression. The question is repeated until the
You might also like the qr operator which quotes its STRING as a regular expression.
qr
my $rex = qr/(?$mod)$pattern/; $isValid = =~ $rex;