...
Code Block | ||||
---|---|---|---|---|
| ||||
my $result = compute_number(); print "The result is $result\n"; |
Related Guidelines
CERT C Secure Coding Standard: DCL31-C. Declare identifiers before using them
Risk Assessment
Using undeclared variables usually can lead to incorrect results and surprising program behavior.
...
Tool | Diagnostic |
---|---|
| Name .* used only once. possible typo |
use strict; | Global symbol .* requires explicit package name |
Perl::Critic
| Policy::TestingAndDebugging::RequireUseWarnings |
Policy::TestingAndDebugging::RequireUseStrict |
Bibliography
...
Related Guidelines
Bibliography
[CPAN] | Elliot Shank, Perl-Critic-1.116, Policy::TestingAndDebugging::RequireUseWarnings and Policy::TestingAndDebugging::RequireUseStrict |
[Wall 2011] | perldiag, perlfunc |
...