![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: How can I show all input and output with Expect.pmby frozenwithjoy (Priest) |
on Oct 06, 2014 at 22:02 UTC ( #1103024=note: print w/replies, xml ) | Need Help?? |
I see two main problems. First, the following lines are in the wrong order for what you want your output to be:
You probably want this order instead:
Second, this:
Should just be this:
The extra stuff is just junk since you print and increment the counter in your loop. This change will fix printing 1 and 2 together like you observed here: (1) (2) Here is the second command EDIT: Hmmm. Looking at your scripts more closely, I'm having second thoughts about this. What if you just print it all from the server script? Like this:
In Section
Seekers of Perl Wisdom
|
|