in reply to Call subroutine of main namespace from package in Plack
Also, please, linkify the crosspost link by at least wrapping it into square brackets.
Update: I tried to just run
(and I addedplackup program.pl
to the end of Mypackage.pm.1;
To debug, you can add
inside the BEGIN block before defining the test subroutine. You'll see that plack doesn't call your program in the main namespace.warn __PACKAGE__;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Call subroutine of main namespace from package in Plack
by Thenothing (Sexton) on Apr 11, 2018 at 14:51 UTC | |
by choroba (Cardinal) on Apr 11, 2018 at 15:25 UTC |