Re: newbie question - handling email addresses
[email protected] (Munzilla)
| Newsgroups | perl.beginners |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <b0c7f3d7-3f26-4a2c-8605-9620bc8c0710@d77g2000hsb.googlegroups.com> |
Great, thanks. I had hoped that was the case. On May 14, 11:33 am, [email protected] (Gunnar Hjalmarsson) wrote: > Munzilla wrote: > > i was told that Perl doesn't like the "@" character > > Then you were told wrong. > > What you need to take into account is that the '@' character in a double > quoted string needs to be escaped, or else Perl tries to interpret it as > the start of an array variable. > > As regards data from a form submission, the '@' character does not need > any special treatment. > > -- > Gunnar Hjalmarsson > Email:http://www.gunnar.cc/cgi-bin/contact.pl