in reply to Re: Re: fixstyle script in PERL COOKBOOK
in thread fixstyle script in PERL COOKBOOK

They are explained in perlre.

What \Q does is disable a lot of the "metacharacters" in REs until the next \E. This is often important when substituting variables in an RE because you have little control over the contents of the variable.

An alternate solution is to quote all possible meta characters with quotemeta.

  • Comment on Re (tilly) 3: fixstyle script in PERL COOKBOOK