B) Return a hashref instead of a flattened hash, and assign the function's result to a scalar instead of a hash. Then undef, {}, and { foo => bar } are all distinguishable values (!defined $resp, !%$resp, and everything else, respectively.)
In reply to Re: return a hash or undef
by hobbs
in thread return a hash or undef
by odrevet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |