Common Warnings and Error messages in Perl

warn

While the warnings and error messages Perl gives are quite precise, they are not always very beginner friendly. In these articles you'll find some of the most common warnings and error messages you'll encounter, explained in, hopefully a more beginner-friendly way.

Some of the articles even include directions showing how to fix the error.

perldiag also has longer explanations for each one of the errors and warnings that you can skim, or you can access the specific explanation using diagnostics or splain.

Other pages

use strict; and warnings; but no diagnostics
use diagnostic; or use splain
use diagnostic; or use splain
substr outside of string at ...
Selectively ignore warnings (turn them off with no warnings)
Scalar value ... better written as ...
Safety net (use strict; use warnings;) - video
Perl tutorial
Common Errors and Warnings - video
Common Errors and Warnings - video
Always use strict and use warnings in your perl code!
AUTOLOAD - handling Undefined subroutines

Author

Gabor Szabo (szabgab) Gabor Szabo