Guest_imported
New member
- Jan 1, 1970
- 0
Hi
I have a little problem with a string.
I have a text file with names like this:
benny
fredrik
bodil
harry
bill
susan
jenny
I now how to use $lines =~ s /bill/billy_boy/g;
bill will be billy_boy
But how do I do when a want to replace all names expect bill to
become billy_boy
When finished it should look like this
billy_boy
billy_boy
billy_boy
billy_boy
bill
billy_boy
billy_boy
/Thanks
I have a little problem with a string.
I have a text file with names like this:
benny
fredrik
bodil
harry
bill
susan
jenny
I now how to use $lines =~ s /bill/billy_boy/g;
bill will be billy_boy
But how do I do when a want to replace all names expect bill to
become billy_boy
When finished it should look like this
billy_boy
billy_boy
billy_boy
billy_boy
bill
billy_boy
billy_boy
/Thanks