Полезная информация

Programming Perl

Programming PerlSearch this book
Previous: 8.1 The Perl DebuggerChapter 8
Other Oddments
Next: 8.3 Efficiency
 

8.2 Common Goofs for Novices

The biggest goof of all is forgetting to use the -w switch, which points out many errors. The second biggest goof is not using use strict when it's appropriate.

Apart from those, there are certain traps that almost everyone falls into, and other traps you'll fall into only if you come from a particular culture. We've separated these out in the following sections.

8.2.1 Universal Blunders

8.2.2 Frequently Ignored Advice

Practicing Perl Programmers should take note of the following:

8.2.3 Awk Traps

Accustomed awk users should take special note of the following:

8.2.4 C Traps

Cerebral C programmers should take note of the following:

8.2.5 Sed Traps

Seasoned sed programmers should take note of the following:

8.2.6 Shell Traps

Sharp shell programmers should take note of the following:

8.2.7 Previous Perl Traps

Penitent Perl 4 (and Prior) Programmers should take note of the following changes between Release 4 and Release 5 that might affect old scripts:


Previous: 8.1 The Perl DebuggerProgramming PerlNext: 8.3 Efficiency
8.1 The Perl DebuggerBook Index8.3 Efficiency