2007/10/4, Praveena Vittal <[EMAIL PROTECTED]>: > Hi All, > > I need a way to replace a backslash(ie:\) with \\ in a string. >
Hi, See this test, $ perl -e ' > $str = "/usr/local/bin"; > $str =~ s|/|//|g; > print $str' //usr//local//bin Good luck! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/