Tuesday, October 4, 2011

Do not disturb, because I'm sleeping

It is possible to suspend the program execution for a limited number of seconds.
The sleep interval is proportional to the number of 'm' letters within the key regular expression m*h
In particular the program will sleep 10 seconds for each 'm' letter.

Example 1:
# sleep for 10 seconds
mh;

Example 2:
# sleep for 30 seconds
mmmh;

No comments:

Post a Comment