Advertisement

Perl - use strict

阅读量:

Perl - use strict

Where to use?

The codebase contains an excessive number of lines of code.

Why to use?

Reason 1: aids in identifying minor mistakes, such as spelling errors, including cases where "apple" might be mistakenly written as "aple".
Reason 2: mandates that variables be used within a limited scope, requiring defining a local variable.

How to use?

Step 1: The "use strict" directive is enforced;
Step 2: A suggested approach involves using the "my" keyword to declare variables;
Usually error 1: A typical issue arises when a global symbol, such as $xxx, necessitate

全部评论 (0)

还没有任何评论哟~