Newbie here- but nevertheless, I've got to get something done.
I'm trying to get the sleep function working for a scan script that I'm writing to check a directory for new files every n seconds. My simple test case is this:
#!/usr/bin/perl -w use strict; { print "I'm going to sleep"; sleep(1); redo; }
When executed it never wakes up!Can anyone help me out and explain what I'm doing wrong with this?
In reply to sleep? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |