Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-11-19 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?