On Fri, 8 Feb 2002, Allen Wang wrote:
> I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle"
>
> Anyone know how to do this?
$string =~ s|\\|\\\\|g;
(\ is used to escape metacharacters in a regexp, so you need to escape \
also).
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
Mathematicians practice absolute freedom.
-- Henry Adams
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]