I want to run a command xyz with Perl. xyz requires several input, basically like this:
name:
address:
tel:
I want to capture the STDOUTed strings (eg: "name:") in variables, but I do not want to use back-tick (I still want to see them on the screen).
Basically what I want is a Expect script like code, so that I can use it for repetitive input of names, addresses, etc. Could somebody give me some idea? Thanks.
In reply to interactively catching STDOUT/STDERR messages by ckyang74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |