q// is generally the same thing as using single quotes - meaning it doesn't interpolate values inside the delimiters.
qq// is the same as double quoting a string. It interpolates.
qw// return a list of white space delimited words. @q = qw/this is a test/ is functionally the same as @q = ('this', 'is', 'a', 'test')
qx// is the same thing as using the backtick operators.
qq// is the same as double quoting a string. It interpolates.
qw// return a list of white space delimited words. @q = qw/this is a test/ is functionally the same as @q = ('this', 'is', 'a', 'test')
qx// is the same thing as using the backtick operators.
本文介绍了Perl语言中使用特殊字符串操作符进行字符串处理的方法,包括单引号(q)、双引号(qq)、单词列表(qw)及命令替换(qx)等操作符的功能与用法。

被折叠的 条评论
为什么被折叠?



