I have been trying to invoke a method of a python class from perl and is as below
parser.py
Class ABC(object):
def __init__(self, input_file, output_file):
....
def method1(self):
....
I want to Invoke this method abc from a perl script. The logic is
obj = ABC(input_file, output_file)
obj. method1()
Tried something like below in perl but in vain
use Inline Python => <<"END_OF_PYTHON_CODE";
from parser import ABC
END_OF_PYTHON_CODE
It throws error that ImportError: No module named parser
Can someone help me here?