Basicaly, I would like to launch the perl script and use it as a python fonction in my programme.
My perl script contain an user input
use strict;
use warnings;
print "\nCan you hear me ? (1/0) ";
my $choice = <STDIN>;
if ($choice == 1){
print "\nYES";
}
I tried to us subprocess.run and subprocess.Popen with no success.
With subprocess.run, it print but doesn't wait the user's input.
PS: First post I something is missing just tell me ;)