demerphq wrote: > > I think there is a reason to move the to a different namespace: we could > then fix the interface issues with some of them. > > For instance reftype() returns PL_sv_undef() when the item is not a ref. > This means you have to guard usage of it somehow. > > If it returned PL_sv_no() instead, then we could safely write: > > if (reftype($foo) eq "HASH") { > } > > instead of > > my $reftype= ref($foo); > if (defined $reftype and $reftype eq "HASH") { > } Use no strict uninit to turn off the warning, that skips the extra defined op.Thread Previous | Thread Next