ref $x eq 'SCALAR' && ref $$x
suffice as an idiomatic substitute for the current
ref $x eq 'REF'
?
In reply to Re^4: ref == "REF" by gaal in thread ref == "REF" by gaal