in reply to Dealing with '@' in Text Strings

I am not sure I undestand your question.

First of all, you example does not work. Precisely for the reason you give: the @ in this case is interpreted as a list1 variable introducer. Use single quotes if you do not want variables to be interpolated in a string:

$x = 'jdoe@somewhere.com,bdoakes@nowhere.com';
To create a list1 of two e-mail addreses from this, you can use split:
@addresses = split /,/, $x;

1Or, to be exact, an array.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Dealing with '@' in Text Strings
by Red_Dragon (Beadle) on Sep 10, 2012 at 19:37 UTC
    I'm still making rookie mistakes, does it ever end? Thank you.

      I say that you know a programming language decently when you are able to write a non-trivial block of code and not have any syntax errors in it. More points if it works correctly on the first try, too :-)