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
In reply to Re: Deprecated annoyances
by tlm
in thread Deprecated annoyances
by tilly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |