Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
where inputfile is simply a text file containing the menu options I want the program to run$ ./myprogram.pl <inputfile.txt
inputfile.txt:
This is fine until the program gets to a bit of user input that needs to be entered using a Term::Readline object. The Term::Readline object does not read the commands from the file, so I have to start typing in the terminal. Does anyone know how to fix this, so I can run inputfile.txt to test the whole program?1 4 5 y n filename.in y 5 8 etc..
Any ideas appreciated.
Thanks, M
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Term::Readline won't accept redirected input
by Fletch (Bishop) on Apr 12, 2006 at 15:05 UTC | |
|
Re: Term::Readline won't accept redirected input
by ikegami (Patriarch) on Apr 12, 2006 at 16:10 UTC | |
|
Re: Term::Readline won't accept redirected input
by Anonymous Monk on Apr 13, 2006 at 09:13 UTC |