Ah, OK. So I understand what you are saying but I'm not quite sure why it is so. I don't have a clear idea of how memory gets allocated for a class. How does $self get assigned to the same exact memory location every time a new object is created? I guess this happens when the compiler sets up a "prototype" (for lack of a better word) for the object class?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Re^2: Why not use a local variable for $self in Moose?
by nysus
in thread Why not use a local variable for $self in Moose?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |