Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Warnings and Strict in Production/Performance

by lyklev (Pilgrim)
on Oct 17, 2006 at 17:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://578850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-20 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found