perl中$+什么意思? 30
$_=<<'HERE';Hesaid'Ameliasaid"Iamacamel"'HEREsay"Matched[$+{said}]!"ifm/(?<said>['"](...
$_ =<<'HERE';
He said 'Amelia said "I am a camel"'
HERE
say "Matched [$+{said}]!" if m/
(?<said>
['"]
(
(?:
[^'"]+
|
(?1)
)*
)
['"]
)
/xg;
如上,say "Matched [$+{said}]!"怎么理解? 展开
He said 'Amelia said "I am a camel"'
HERE
say "Matched [$+{said}]!" if m/
(?<said>
['"]
(
(?:
[^'"]+
|
(?1)
)*
)
['"]
)
/xg;
如上,say "Matched [$+{said}]!"怎么理解? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询