Perl (Scripting) - Pause using Sleep

by
Jeremy Canfield |
Updated: November 19 2024
| 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