1

The program has these prompts:

Enter Username:
Enter Code:

How can I get Perl to input the proper text for each prompt?

2 Answers 2

3

Expect is the usual solution.

Sign up to request clarification or add additional context in comments.

1 Comment

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
3

You can use expect. There's a CPAN module for it.

1 Comment

Err … did someone downvote this for not using pretty linking and not using the permalink? Aside form those differences, this answer is the same as mine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.