bcens has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks. This is so simple but has been a major pain for me. Here goes:
I read a data source to get a e-mail address. The match is made so the string $emailaddress is populated with (lets say) someone@where.com ... I then call up a mailer and pass the $emailaddress to it so it knows who to send the mail to. My problem: If I manually define:
$emailaddress = 'someone@where.com'; $emailaddress = "someone\@where.com";
The string is passed correctly. I know why I have to escape the @ character or use ticks instead of quotes but how can I escape it AFTER the string is already defined?
The data source record is saved as someone@where.com not someone\@where.com.
Thank you all in advance.
Brandon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple problem with @ in string.
by almut (Canon) on Feb 06, 2010 at 03:29 UTC | |
|
Re: Simple problem with @ in string.
by jethro (Monsignor) on Feb 06, 2010 at 03:34 UTC | |
by bcens (Novice) on Feb 06, 2010 at 03:47 UTC | |
by chromatic (Archbishop) on Feb 06, 2010 at 04:45 UTC | |
by jethro (Monsignor) on Feb 06, 2010 at 15:49 UTC |