|
|
Perl has a number of built-in variables that allow you to write very compact code. Scripts that use many built-in variables can be cryptic for people who are starting to learn about Perl. Other techniques will be used when it is possible to accomplish the same task. For instance, the built-in variable $_ refers to the current line, and you can use your own variable to store the value of the current line. On the other hand, the built-in variables $`, $' refer to the 'prefix' match and the 'post' match, respectively, and they do not have a simple counterpart. There are also a number of 'Perlisms' that advanced Perl users incorporate in their scripts, and they will be used where deemed appropriate.
|
|