You should show us some output, particularly some that shows what the email address is. Your while loop is strange to say the least: You find the address you want, push it onto an array, break out of the loop, then form your email address by joining that array of one with spaces. Why not just set a "found email address" variable and break out of the loop? It seems like you're trying to do something else there that's not obvious. I don't think '@' is the issue because you're storing the email address in a scalar -- not specifying it with double quotes where @ would be interpolated. Your @ substitutions are not doing what you think though. If you want a backslash, you need to backslash it since it's the escape character. I think you want this, although, as I said, I don't think it will make any difference:
$Email_address =~ s/@/\\\@/;
In reply to Re: emailing with an address taken from a database
by steves
in thread emailing with an address taken from a database
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |