"John W. Krahn" schreef:

>          s/\\/\\\\/g;
>          s/'/\\'/g;

These two can be combined to

    s/(?=[\\'])/\\/g

which I don't expect to be faster; it just makes it easier to add
characters to be escaped.

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to