in reply to Can't seem to figure this out

sleep() returns the number of seconds slept. print "hello", "test", "is", "a", "test" will print "hellothisisatest". So, since sleep() is returning a value, it's getting printed as part of the print statement, since print supports comma separated arguments. What you're seeing is the '1' that sleep(1) is returning being printed after the '\n' from the preceeding line.

--Chris

e-mail jcwren

Replies are listed 'Best First'.
RE: (jcwren) Re: Can't seem to figure this out
by moen (Hermit) on Sep 14, 2000 at 02:21 UTC
    ahh..thank you a million. You just made my day :)