in reply to Re: 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 for the reftype one ... I wonder if reftype can legally be anything other than GLOB/IO/ARRAY/HASH/CODE/REF/SCALAR? Meaning, q{} cannot legally be returned from reftype().my $is_class = eval { $thing->isa( 'Some::Class' ) }; my $is_blah = $is_class && $x == 3;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why reftype and blessed are making my life harder than it needs to be
by xdg (Monsignor) on Feb 09, 2006 at 22:48 UTC | |
by dragonchild (Archbishop) on Feb 10, 2006 at 13:38 UTC | |
by demerphq (Chancellor) on Feb 10, 2006 at 14:06 UTC |