You might find that putting a /x on short regular expressions to be
excessive. An exception can be made for them by setting
minimum_regex_length_to_complain_about to the minimum match length
youll allow without a /x. The length only counts the regular
expression, not the braces or operators.
minimum_regex_length_to_complain_about = 5
$num =~ m<(\d+)>; # ok, only 5 characters
$num =~ m<\d\.(\d+)>; # not ok, 9 characters
This option defaults to 0.
Because using /x on a regex which has whitespace in it can make it
harder to read (you have to escape all that innocent whitespace), by
default, you can have a regular expression that only contains
whitespace and word characters without the modifier. If you want to
restrict this, turn on the strict option.
strict = 1
$string =~ m/Basset hounds got long ears/; # no longer ok
This option defaults to false.