howdthattaste
Programmer
OS:Win Xp
My example here seems pointless, but the method (if possible) would solve my problem.
In windows, we have the command 'pause'. Its simple, and usually used at the end of batch files. You can also type it on the command line. At which point you're prompted to "press any key to continue...".
I can call this with perl with:
open(PAWZ,"pause |");
while(<PAWZ>)
{
print "$_\n";
}
However, once that happens im suspended until I physically press a key. The question: Is there anyway to have the perl script issue the keystroke? In this case id be interested in having it simulate pressing the 'e' key to unsuspend and continue on through the perl script.
Thanks!
----------------------------------
"Not New York..., Kansas
My example here seems pointless, but the method (if possible) would solve my problem.
In windows, we have the command 'pause'. Its simple, and usually used at the end of batch files. You can also type it on the command line. At which point you're prompted to "press any key to continue...".
I can call this with perl with:
open(PAWZ,"pause |");
while(<PAWZ>)
{
print "$_\n";
}
However, once that happens im suspended until I physically press a key. The question: Is there anyway to have the perl script issue the keystroke? In this case id be interested in having it simulate pressing the 'e' key to unsuspend and continue on through the perl script.
Thanks!
----------------------------------
"Not New York..., Kansas