当前位置: 首页 > 文档资料 > Perl 入门教程 >

study

优质
小牛编辑
128浏览
2023-12-01

描述 (Description)

此函数需要额外的时间来研究EXPR,以提高在EXPR上执行的正则表达式的性能。 如果省略EXPR,则使用$ _。 实际速度增益可能非常小,具体取决于您希望搜索字符串的次数。

您一次只能学习一个表达式或标量。

语法 (Syntax)

以下是此函数的简单语法 -

study EXPR
study

返回值 (Return Value)

此函数不返回任何值。

<!--

例子 (Example)

Following is the example code showing its basic usage −

When above code is executed, it produces the following result −

-->