in reply to incorporate Ctrl+z of unix in Perl code
But regardless, if you run top as system "top", it ought to be running in the foreground, and all keyboard input should be directed to it. So, if indeed, on your system, 'ctrl+z' isn't the suspend key (check stty -a), but the normal way to stop top, it ought to work.
|
|---|