last

The last command Is Like the break statement In C (As used In loops); it immediately exits the Loop In question. If the LABEL Is omitted, the command refers To the innermost enclosing Loop. The last EXPR form, available starting In Perl 5.18.0, allows a label name To be computed at run time, And Is otherwise identical To last LABEL.

The Continue block, If any, Is Not executed (Perl里面的last关键词相当于vb里面的Exit Do或者Exit For)

匹配:m/<regexp>/ (还可以简写为 /<regexp>/, 略去 m) 替换:s/<pattern>/<replacement>/ 转化:tr/<pattern>/<replacemnt>/