in reply to Re: Better way to dereference a shifted hashref arg?
in thread Better way to dereference a shifted hashref arg?

Assuming you meant my %arg, your code has two problems: 1) It gives a warning before dying when it's undef, and 2) it also dies when a ref to an empty hash is passed.