in reply to Email Address in Post Replies,
This looks like a "Inherited Script" scenario where you didn't create this script back in the late 90's when a functional approach to scripting in Perl was the usual method. Been there, Done that!
So, let's answer the question. The hexidecimal (ASCII) value is what you're seeing, @ = %40. So, simply use a substitution statement to correct the problem.
I added grouping as well as a global search and case insignificant modifiers. Hope this helps, Good Luck$email = $postFields{ "email" }; $email =~ s/(\%40)/\@/gi;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Email Address in Post Replies,
by chromatic (Archbishop) on Dec 16, 2008 at 23:40 UTC | |
by Sagacity (Monk) on Dec 17, 2008 at 20:10 UTC | |
by chromatic (Archbishop) on Dec 17, 2008 at 22:34 UTC |