[oclug]perl mailing question
Dave O'Neill
dmo at acm.org
Wed Nov 13 13:55:52 EST 2002
On Wed, Nov 13, 2002 at 01:32:15PM -0500, Ian Wormsbecker wrote:
> On November 13, 2002 06:39 am, gabriel wrote:
> > you need to escape the @ (\@) in the $recipient variable. also, i'd
> > suggest using " instead of ' to define variables.
>
> I was under the impression that using ' ' meant that I did not have to escape
> the @.
>
> I thought that either one of these would work
> $recipient = 'i.wormsbecker at uleth.ca'
> $recipient = "i.wormsbecker\@uleth.ca"
Correct. ' ' are non-interpolating quotes, so you can have Perl special
chars $, %, @, in those strings as literals without the need to escape them.
-dave0
--
('>
//\ dmo at acm dot org
v_/_ perl -e 's g#fmtrxoxpajashaj#fpagjaphgxoxg.s g....g\U$&\ngxoxg.print'
More information about the OCLUG
mailing list