No, don't do that. ref is broken:
perlfunc in bleadperl recommends several other techniques for doing the same thing without the problems.
In reply to Re^2: How to differentiate hash reference and object reference?
by chromatic
in thread How to differentiate hash reference and object reference?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |