in reply to Dealing with '@' in Text Strings
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:
To create a list1 of two e-mail addreses from this, you can use split:$x = 'jdoe@somewhere.com,bdoakes@nowhere.com';
@addresses = split /,/, $x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dealing with '@' in Text Strings
by Red_Dragon (Beadle) on Sep 10, 2012 at 19:37 UTC | |
by Anonymous Monk on Sep 10, 2012 at 19:42 UTC | |
by Anonymous Monk on Sep 10, 2012 at 21:25 UTC |