if you are reading these string from a file, I suppose there is a \n at eol... so..... how about like this ?
~s/^$name\s/\#$name/g have a nice day =) ----- Original Message ----- From: "Jose Vicente" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 29, 2001 9:26 AM Subject: I need your help > Hi friends. > I am replacing a string using s///, in the following way:, but I only > need and exact string to be replaced, for example if I have a file with the > following strins: > amor > alto > a > bacho > And execute > ~s/$name/#$name/g > > where $name is equal to "a", so I have > > #amor > #alto > #a > b#acho > > But I want > amor > alto > #a > bacho > > Please help me. Because I need. > Bye and have a good year. > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]