|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Re^3: Things every perl programmer should know? (disabled warnings)by Juerd (Abbot) |
| on Jun 04, 2003 at 23:31 UTC ( #263181=note: print w/ replies, xml ) | Need Help?? |
|
no warnings 'once'; because that sodding warning has never caught anything for me that strict wouldn't have trapped sooner. The kicker is that fixing it requires jumping through very silly hoops to make it go away. I find that error message very useful. It's not just catching spelling errors, which strict does indeed do better, but it's also catching variables that you really did use once. Variables used once are useless.
If you have a variable that is used only once, then why use that variable? You're throwing away its value if it has one, and there's a variable declared that you don't use. "Variable used only once" actually means "Hey, you forgot to remove a line during your Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In Section
Meditations
|
|
||||||||||||||||||||||