Because the question was how to tell if the reference was blessed, not how to tell if it was blessed into a specific package, ref won't tell you that unless you do a lot of && ref($obj) !~ /HASH/ && ref($obj) !~ /ARRAY/...
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re^4: How to tell if a variable is blessed ?
by jasonk
in thread How to tell if a variable is blessed ?
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |