in reply to How to put special characters($, @, #) into a field name?
$ascalar="myemail\@gmail.com"; print "\$ascalar is |" . $ascalar . "|\n";
Output of the code above looks like this:
$ascalar is |myemail@gmail.com|
And, at the hastiest of scans of your update, neverminda, same answer. BTW, this is the kind of question that's a good argument for reading the docs.
1 Belated Update: An excellent alternate -- use of appropriate quoting -- is well covered by others and should have been noted sooner, since my initial statement is incorrectly categorical. See the replies from Fletch & shmem below.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to put special characters($, @, #) into a field name?
by neverminda (Novice) on May 26, 2007 at 21:59 UTC | |
by Fletch (Bishop) on May 26, 2007 at 22:06 UTC | |
by shmem (Chancellor) on May 26, 2007 at 22:07 UTC | |
by neverminda (Novice) on May 26, 2007 at 22:13 UTC |