in reply to Re: Passing Reference of a Hash to a method
in thread Passing Reference of a Hash to a method

ref never returns undef. Even ref(undef) returns an empty string.
local $\ = "\n"; print defined ref undef; print length ref undef;
prints
1
0