Actuall the thing being referenced is blessed; the reference is still just a reference. The blessing changes the referent, not the reference itself. A new reference taken to the same referent will exhibit blessed / object-y behavior.</pedant>
use strict; {package Foo; sub oik { print "oik\n" } } my $x = bless [], "Foo"; $x->oik; our @y; *y = $x; ( \@y )->oik;
Zaxo's explanation below shows this as well.
In reply to Re^2: why "Bless" in OO Perl
by Fletch
in thread why "Bless" in OO Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |