In Perl, what is the difference between '
and "
?
For example, I have 2 variables like below:
$var1 = '(';
$var2 = "(";
$res1 = ($matchStr =~ m/$var1/);
$res2 = ($matchStr =~ m/$var2/);
The $res2
statement complains that Unmatched ( before HERE mark in regex m
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…