标签: regex perl
m/(?<word>\w*a$)/
我收到了这个错误:
Sequence (?<w...) not recognized in regex;
答案 0 :(得分:10)
(?<xxx>语法需要perl 5.10或更高版本:http://perldoc.perl.org/perl5100delta.html#Named-Capture-Buffers
(?<xxx>