I just noticed a typo in something I recently posted to majordomo-users
that I'd like to clarify even though obviously no one else cares because
no one else caught it (yes, it takes a *big* ego to follow-up your own
messages):
> [ Michael Will writes: ]
> > I have installed Majordomo 1.93 and Perl 5.001e. I edited the files resend
> > and majordomo for instances of "@" and replaced them with "\@".
> >
> > However I had to also edit the majordomo.cf for two instances of the "@".
> > Is this normal?
>
> Since majordomo.cf is eval'ed as Perl code, yes, it's correct. Note that
> the list config files are *not* eval'ed, however, so they don't require
> escapes for such characters. Also worthy of note is that Perl 5 interprets
> '@' in "quotish" strings, which includes more than mere quoted strings:
> most regular expressions, most "here" documents, and alternate quotes
> are also interpolated. Note that array variables that begin with '@'
> should *not* be escaped. Some examples:
>
[...]
> q(user\@domain) escape the @ (alternate quotes)
That one is wrong. It should say:
qq(user\@domain) escape the @ (alternate quotes)
q(user@domain) no escape (alternate single quotes)
"More than you ever wanted to know about Perl."
--
Dave Wolfe *Not a spokesman for Motorola* (512) 891-3246
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598
|
|