in reply to isa() on any scalar
Update: I agree with chromatic's point. When I thought of the solution below, I erroneously conflated the OP's problem with a different one (one resulting from using ref to detect whether something is an 'ARRAY').
Use UNIVERSAL::isa instead. I.e.
UNIVERSAL::isa( $value, "Node" )
the lowliest monk
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: isa() on any scalar
by chromatic (Archbishop) on Jun 10, 2005 at 18:56 UTC | |
by gam3 (Curate) on Jun 11, 2005 at 02:15 UTC | |
by chromatic (Archbishop) on Jun 11, 2005 at 08:35 UTC | |
Re^2: isa() on any scalar
by mrborisguy (Hermit) on Jun 10, 2005 at 18:07 UTC | |
Re^2: isa() on any scalar
by nothingmuch (Priest) on Jun 11, 2005 at 12:34 UTC | |
by DrHyde (Prior) on Jun 13, 2005 at 08:38 UTC | |
by nothingmuch (Priest) on Jul 01, 2005 at 15:08 UTC |