How about:
if($string eq $name)
{
$string = "#".$string;
}
Daryl J. Hoyt
Performance Engineer
Geodesic Systems
312-832-2010
<http://www.geodesic.com>
<mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Jose Vicente [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 7:27 PM
To: [EMAIL PROTECTED]
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]