in reply to Re: Call subroutine of main namespace from package in Plack
in thread Call subroutine of main namespace from package in Plack
Hi choroba, I have a main script app.psgi, inside I have several modules, modules in my local folder like module1.pm, module2.pm, etc
This modules have own functions.
In the app.psgi I have anothers functions relation to router engine urls, to dispach content according to url.
My target is set a value or get a value from main script (app.psgi) and pass that value to all modules, and retrieve the value from module via the function set in main script.
* To do this I can pass a function value to another function.
* I can create a our variable
* I can used db to retrieve data
But I want to avoid the above list, that's why the title of this thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Call subroutine of main namespace from package in Plack
by choroba (Cardinal) on Apr 11, 2018 at 15:25 UTC |