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

Thanks a lot !! It works... But I also had to escape the @ in the output. By the way, I don't know what \Q \E means... could you tell me why? Thanks...
  • Comment on Re: Re: fixstyle script in PERL COOKBOOK

Replies are listed 'Best First'.
Re (tilly) 3: fixstyle script in PERL COOKBOOK
by tilly (Archbishop) on Apr 21, 2001 at 08:04 UTC
    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.