Hi Vadim, On Saturday 13 December 2014 12:44:22 Konovalov, Vadim wrote:
> A hopefully simple question, > Is it possible to use Perl from Python? > > All I want to do - to script some editor with perl, whereas only python > scripting is available... Of course my editor-api calls will be issued with > Inline::Python or something like that. You mean your editor is written in Perl and you want to allow for your users to script it in Python and these Python scripts should be able to call back into Perl to for example call API methods? Yes, that's exactly what my use case looks like and probably what's tested best. You could for example pass an Editor object as parameter to your Python script and the script may use it like it was a plain normal Python object and call methods on it. https://metacpan.org/pod/distribution/Inline-Python/Python.pod#Using-Perl-inside-Python-inside-Perl may give you additional pointers to what's possible. Please feel free to ask any questions that may come up on how to integrate Python scripting. I do have quite some experience on how to bridge these two languages and am happy to help. Regards, Stefan