Hi Tony, thanks for your reply.
Actually the values are typed by the users (from the a webpage) and then the they are stored in the variable ->$newemail and $old_mail and it is in the file.
In the code it is more like this:
for ($i=0, $i<$sw, $i++)
{
local $tmp_email ="FORM_EMAIL$j";
$newemail ="$ENV{$tmp_email}";
`perl -pe 's/$old_email[$j]/$newloc $newemail/g' -pi $file`;
}
$sw -> it the users number
So, I am not sure this can be done as you said "pail\@somewhere.com", since the values are encrypted into the variables.
Thanks for your help.
Carlos
---------- Post updated 11-17-09 at 01:05 AM ---------- Previous update was 11-16-09 at 04:59 PM ----------
Please help me