----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Monday, October 12, 2009 10:00 AM
Subject: about the AT sign (@) WAS: make perl see number as string
[email protected] writes:
What is the proper way to escape or protect an `at sign' (@) inside a
perl script where you might need it for sending email.
I' monkeyed around several times and got it escaped... but inbetween I
always forget how I did it... and wondered if the is an accepted or
common way
Here's 2 ways it can be done:
$email = "[email protected]";
or
$email = '[email protected]';
Inside single quotes, the @ doesn't need to be escaped.
Cheers,
Rob
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/