Bootstrap FreeKB - Perl (Scripting) - Pause using Sleep
Perl (Scripting) - Pause using Sleep

Updated:   |  Perl (Scripting) articles

sleep can be used to pause a script for x seconds.

#!/usr/bin/perl
print "I'm tired, I should take a nap";
sleep(5)
print "I'm done sleeping";

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 3fde8c in the box below so that we can be sure you are a human.