Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Caching a default instance to avoid initializing it every time (with Moo)by Your Mother (Archbishop) |
on Feb 08, 2018 at 19:34 UTC ( [id://1208743]=note: print w/replies, xml ) | Need Help?? |
Give them what they are conditioned to expect to see. Throwing a colander of You also need to be very sure that you are storing the cached instance in a persistent global variable as you think you are. Where is your example code to test this stern advice? If it was worth saying, it's worth showing. It is insulting that, again, there were three working, technical answers presented before your reply and you still felt the need to chime in, adding nothing. Then again, maybe you can't read the code in the three examples so you might not have realized the question was trebly answered already.
In Section
Seekers of Perl Wisdom
|
|