good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Objects with Private Variablesby Anonymous Monk |
on Mar 30, 2003 at 16:21 UTC ( [id://246740]=note: print w/replies, xml ) | Need Help?? |
So how does the closure know what $self it is using? As far as I understand, $self will be out of scope when I return from "new". Or is a new reference to the "new" block saved each time it runs?
In Section
Tutorials
|
|