in reply to Re^2: Why reftype and blessed are making my life harder than it needs to be
in thread Why reftype and blessed are making my life harder than it needs to be
As I said, I tend to think of it as a boolean -- largely because I only use it in situations when I'm pretty sure I won't be blessing objects into "0" or "\0".
Interestingly, reftype only checks the length of ref, which is why it can probably be fooled by "\0".
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype)
by demerphq (Chancellor) on Feb 10, 2006 at 13:55 UTC | |
by dragonchild (Archbishop) on Feb 10, 2006 at 14:13 UTC | |
by demerphq (Chancellor) on Feb 10, 2006 at 14:22 UTC | |
by dragonchild (Archbishop) on Feb 10, 2006 at 14:27 UTC | |
by demerphq (Chancellor) on Feb 10, 2006 at 14:36 UTC | |
|