in reply to •Re: Re^2: One liner to Check and undef hash elements (shortcircuiting)
in thread One liner to Check and undef hash elements
Traded the flag variable for a double defined test on the last value fetched from the hash.my $hash_has_undef = do { local $_; 1 until defined or not (undef, $_) = each %hash; defined; };
Makeshifts last the longest.
|
|---|