use Inline Python => <<'END';
from MYPYTHONLIBRARY import *
END
my $Obj = MYPYTHONLIBRARY->new($a, $b); # line 30
the error I am getting is:
Can't locate object method "new" via package "MYPYTHONLIBRARY" (perhaps you forgot to load "MYPYTHONLIBRARY "?) at /MY/LIBRARY/PATH/MYPERLLIBRARY.pm line 30.
So i searched on net and found that
"Inline::Python inspects the main namespace of the Python code and imports those names into the current package. Thus you have to specify the fully qualified name of the imported class:
package TestPy;
use Inline Python => 'from StringIO import StringIO';
my $stringio = TestPy::StringIO->new;"
•Markdown example link
My problem is that, in my code there is lot of do and require statement and I am not able to get the fully qualified name.
Fully::Qualified::name::MYPYTHONLIBRARY->new($a, $b);
So how can I get the fully qualified name for my python library.