Perl study Function

Advertisements


Description

This function takes extra time to study EXPR in order to improve the performance on regular expressions conducted on EXPR. If EXPR is omitted, uses $_. The actual speed gains may be very small, depending on the number of times you expect to search the string.

You can only study one expression or scalar at any one time.

Syntax

Following is the simple syntax for this function:

study EXPR

study

Return Value

This function does not return any value.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result




Advertisements
Advertisements