Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Warnings and Strict in Production/Performance

by lyklev (Pilgrim)
on Oct 17, 2006 at 17:29 UTC ( #578850=note: print w/replies, xml ) Need Help??

in reply to Warnings and Strict in Production/Performance

There are different types of warnings: Perl-warnings and other warnings. I think you should never see Perl-warnings in production for multiple reasons:

  • variables used without initialisation or declaration, accessing non-existent array cells; this will undoubtedly cause unreliable output
  • security concerns: warnings might reveal more than you want in case security is an issue

Of course, there are other, non-Perl errors, like "Disk is almost full". These messages should be logged to a file and regularly inspected. I would not use "warn" for this.

Back to your question: I use strict in production, and depending on the type of application and its audience (general audience: no, expert audience: yes) warnings.

  • Comment on Re: Warnings and Strict in Production/Performance

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://578850]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2018-06-20 23:17 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.