in reply to Deprecated annoyances
ref now returns an empty string, instead of undef, when its argument is not a reference. Hence expressions like
don't produce annoying warnings in such cases.ref $x eq 'CODE'
There's a little coding guideline lurking in there somewhere... Something like "never return undef when the empty string would be just as good."
the lowliest monk
|
|---|