[Israel.pm] A small note about quote-like expressions
Shmuel Fomberg
semuelf at 012.net.il
Sun Mar 29 13:52:23 PDT 2009
Hi All.
I am starting to get the quote-like expressions ( qq/.../ ) right in my
tokenizer. Just wanted to drop a small note:
print 1 if "shalom world"
=~
m{shalom # start {
\s #whitespace }
}x;
if the expression is braced, and can include comments ( the x modifier )
then the braces in the comments must be balanced too, or we will get a
compilation error.
If it is not braced, then the separator char must not appear in the
comments.
All this is quite obvious, I think. Just had to check.
Shmuel.
More information about the Perl
mailing list