I've just discovered Inline and Inline::Python in particular. I know Perl quite well but I'm a complete noob when it comes to Python. I'm trying to make use of a method in a Python class. I have a simple test script that works:
use Inline Python => 'from fastCif.fastParser import cifToHashParser'; my $parser = new cifToHashParser; my $result = $parser->parse($file); But when I include the same code in a Perl module I get an error when I try to use the Perl module in the test program: Can't locate object method "new" via package "cifToHashParser" (perhaps you forgot to load "cifToHashParser"?) at /home/dhoworth/progs/pdb/PDB_CIF_fast.pm line 28. Compilation failed in require at ./t-cif.pl line 11. BEGIN failed--compilation aborted at ./t-cif.pl line 11. I suppose I'm missing something basic ... BTW, I understand there should be a directory .Inline somewhere. I can't find it anywhere under my home directory. Thanks, Dave