The right-hand side (RHS) of the '=~' operator will cause it to match literally rather than as a regular expression. To avoid this issue, the RHS should be unquoted so that the regular expression metacharacters are interpreted correctly.