阅读背景:

Perl RE匹配:如何将变量用于RE标志?

来源:互联网 

In Perl:

my $string = "This is a test";
say "String matches" if $string =~ /this is a test/;          # Doesn't print
say "String sort of matches" if string =~ /this is a test/i;  # Prints
my $string = "This is a test";
say "



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: