Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Why do you need it? Calling functions from the main:: namespace in modules is a code smell. And now we also see why. How do you run the script under plackup?
Also, please, linkify the crosspost link by at least wrapping it into square brackets. Update: I tried to just run (and I added to the end of Mypackage.pm. 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.
In reply to Re: Call subroutine of main namespace from package in Plack
by choroba
|
|