• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Substituting \@ for @ in PERL

I have a simple form email program that is using blat
The input email address is in the form
me@mycompany.net
I need to change this to
me\@mycompany.net
for blat to work the code is
$Email = $input->param('Email');
$ccaddress = "$Xemail";

0
pharries
Asked:
pharries
1 Solution
 
RobWMartinCommented:
$Email=~s/\@/\\\@/;
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now