No, your $self in global scope is just one variable that then gets overwritten every time you instantiate a new object. The old one automatically gets DESTROYed at that time.
Maybe consider just creating two objects of the same such class and watch what happens.
In reply to Re^3: Why not use a local variable for $self in Moose?
by Corion
in thread Why not use a local variable for $self in Moose?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |