Hi folks -
I am currently learning perl, self-teaching while I do my regular job, and as such I am working on a perl script where I am printing an array to the screen with a simple:
print @cmd; # prints array command
But the output from that array is about 200+ lines and I would like to put in some way to pause the output to about 20 or so lines so they can be viewed. So essentially putting in a command like:
print "Please press a key to continue."; <STDIN>;
But I am not sure how to get the functionality of it working and make is so it stops around 20 lines of output and then continues when you hit a key, like space or something.
Thanks for the help, loving perl so far and hope it takes me far in my work.
Dub