Handling Warnings

Learn how to handle warnings in Perl.

While there’s more than one way to write a working Perl program, some of those ways can be confusing, unclear, and even incorrect. Perl’s warnings system can help us avoid these situations.

Producing warnings

Use the warn built-in to emit a warning:

Access this course and 1400+ top-rated courses and projects.