The stupid question is the question not asked | |
PerlMonks |
fixstyle script in PERL COOKBOOKby masterhenry (Initiate) |
on Apr 14, 2001 at 00:54 UTC ( [id://72481]=perlquestion: print w/replies, xml ) | Need Help?? |
masterhenry has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm having some trouble with the fixstyle script provided by the Perl CookBook. It works fine when I use regular words to do global search and replace. But when I try to replace webmastr@easynett.com with allezmail@aol.com, it gives an error saying that I need to escape @. But when I try to put webmastr\@easynett.com and allezmail\@aol.com, then it runs, BUT it doesn't make the replacement of webmastr@easynett.com to allezmail@aol.com. I'm thinking that it's not properly escaping the @. Am I doing something wrong? Is there another way to escape the @ that I'm not aware of? Please tell me. Thanx. It would be helpful if you email me at hotmagma1@hotmail.com
P.S. The line that is giving the error is when I put: webmastr@easynett.com => allezmail@aol.com It works when I put: hello => hi but not with the @
Back to
Seekers of Perl Wisdom
|
|