in reply to -w in production environment
Lots of gratuitous errors in the log will cause people to ignore the log...So...
If you honestly expect a lot of blank fields, and the prospect of checking for defined-and-then-a-value makes you nauseous, just pre-cook them all with a defined value (like the empty string) before you use them:
for(keys %USER) { $USER{$_}="" unless defined $USER{$_}; }
|
---|