Scalar::Util's refaddr (assuming the XS version) is slightly faster still, and doesn't suffer from possible problems with overloaded objects :-)
In reply to Re^4: Marking an array as already seen (yes)
by adrianh
in thread Marking an array as already seen
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |