Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to replace characters in string?

Status
Not open for further replies.

alan123

MIS
Oct 17, 2002
149
US
I want to change email format from "abcd@abcd.com" to "abcd\@abcd.com", since sendmail need that format, how can I replace "@" with "\@"

Thanks.
 
but this only shows "abcd.com"? I tested on RH8
 
That's because [tt]@abcd[/tt] is getting interpolated in the line:
[tt]my $addr = "abcd@abcd.com";[/tt]

Change it to:
[tt]my $addr = 'abcd@abcd.com';[/tt]
or:
[tt]my $addr = "abcd\@abcd.com";[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top