How to call a python script from Perl?

Viewed 32307

I need to call "/usr/bin/pdf2txt.py" with few arguments from my Perl script. How should i do this ?

4 Answers

IF you want to see output in "real time" and not when script has finished running , Add -u after python. example :

my $ret = system("python -u pdf2txt.py arg1 arg2");

Related