in reply to Can I have a running clock within a script in Xterm?

Hi westrock,

This list of Tutorials on threads will bring you through how to have two things happen at once.

PS: Term::ANSIScreen will allow you position the cursor on the screen more legibly, also you should have a sleep(1); in the timer loop as otherwise it will hog too much of the processor

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."