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
In reply to Re: isa() on any scalar
by tlm
in thread isa() on any scalar
by mrborisguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |