in reply to how to use semaphores?

There's a nice article in The Perl Journal on this.