|
|
| The stupid question is the question not asked | |
| PerlMonks |
Answer: having difficulty getting $self back from an _init() function |
| ( #36524=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > object-oriented programming > having difficulty getting $self back from an _init() function contributed by Fastolfe
In your init function, you are changing $self, creating a new hash reference. This destroys the associations it's had before. If you want to add some items to $self, set them individually:
|
|
||||||||||||||||||