Could somebody please tell me what command I need to use to pause my Perl script? What I am trying to do is pause my script for 30 seconds somewhere in the middle and then continue to run it from the same place that I paused it at. Is it possible to do?
Thank you very much for the reply. However, when I am trying to use that command after I want to print something, for some reason the script first goes to sleep and then prints. Here is just an example:
Thanks again for the reply. Unfortunately, when I tried your code, I got the same problem. The system first hangs for 30 seconds and then immediately prints A and B. What I need is to first print A then pause for 30 seconds and then print B.