-1

I have a Perl script that prompts for "Enter" input from user. I need to run this perl script thru Python. How can I show that prompt message to user or catch the prompt and send inputs values to Perl thru Python?

oybek.t
  • 363
  • 6
  • 16
  • 2
    Possible duplicate of [Wrapping an interactive CLI in python](https://stackoverflow.com/questions/10962141/wrapping-an-interactive-cli-in-python) – Chris Mar 26 '19 at 18:26

1 Answers1

-1

It seems that you want to use input native python function.

x = input('Please input your input') # this will prompt the user to type

Now you can use the input for your perl script. This only answers part of your question , as this is just capturing the prompt and sending it to perl.

You can also execute perl script in python: You can find more answers here : Call Perl script from Python

Born Tbe Wasted
  • 612
  • 3
  • 13
  • 1
    Please [do not post an answer that consists essentially of a link](https://stackoverflow.com/questions/how-to-answer). Include the important points in your answer; leave the link for extra information or as a reference. – Kevin Mar 26 '19 at 18:29
  • 1
    that I know. How do I know in Python if Perl is asking for input? – oybek.t Mar 26 '19 at 18:59