On Tue, 24 Sep 2002 13:25:46 -0700 (PDT), Jim Trocki <[EMAIL PROTECTED]> said: > > yeah, well -w carps on this: > > my %h; > > die if ($h{"stuff"} ne "" );
It's true that you have to adjust your code to avoid triggering warnings. I find the adjustment worth it, but opinions differ. If you already know the keys you're going to use (which is probably true for most places in mon), you can pre-load with '' if that's how you want missing keys to appear: @h{@valid_keys} = ('') x @valid_keys; Or, if $h{stuff} can't be 0, you can: die if $h{stuff}; -- Roderick Schertler [EMAIL PROTECTED] _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon