Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Re: fixstyle script in PERL COOKBOOK

by Anonymous Monk
on Apr 20, 2001 at 23:05 UTC ( #74275=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://74275]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-05-17 18:48 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (159 votes). Check out past polls.