You're blessing a reference to the same hash. The blessing gets attached to the hash, not the reference. Bless the same hash again and you'll replace the previous blessing.
Improve your skills with Modern Perl: the free book.
In reply to Re: Class confusion when testing using ref()
by chromatic
in thread Class confusion when testing using ref()
by atcroft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |