Perl study Function
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.
Following is the simple syntax for this function −
study EXPR study
This function does not return any value.
Following is the example code showing its basic usage −
When above code is executed, it produces the following result −