阅读背景:

帮助理解perl中的全局标志。

来源:互联网 

As far as I know in perl global '/g' flag means that search will replace/return all the matches throughout the string. But I am not able to understand the way it reacts to global variables while matching, can somebody explain the why there is difference between output of these two sample programs:As far as I know in perl global '/g' flag means




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

分享到: