Think about Loose Coupling | |
PerlMonks |
Re: "importing" methods?by pwagyi (Monk) |
on Apr 28, 2019 at 12:41 UTC ( [id://1233075]=note: print w/replies, xml ) | Need Help?? |
It looks like you've a singleton 'app' and it's been passed around to invoke methods. Normally this sounds like where DI is used? even thought DI would still require you to write $obj->method. Below idea could work. but I'm not really expert in the magical part of Perl. :)
In Section
Seekers of Perl Wisdom
|
|