PerlOnTheWay has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is as follows:
system("$cmd|more"); =anything do A if terminated by press q do B otherwise. =cut
That said, $cmd will output response piped to more,then I need to do different things whether it's terminated by press q.
But how to know whether user terminates system("$cmd|more") with q or not in the first place?
|
|---|