The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
liam27 (15) [Avatar] Offline
#1
Hi, I'm working on Listing 15.3 in TextWrangler (running in Terminal) on OS X 10.6.6. It seems that what you intended to happen was that "How" would be printed immediately, then two seconds later, "are" would be printed, then two seconds later, "you" would be printed, then two seconds later "today?" would be printed. The problem is that if I run the listing exactly as you wrote it, it simply waits 6 seconds and prints "How are you today?". I've discovered this is because of the commas- if I take out the three commas and run the listing, it prints as it should, three seconds between each word.

However, when I take out the commas, it prints all the words on separate lines. I assume what you meant with the commas was to have all the words print on the same lines, but unfortunately this seems to add all the "sleep" functions together too.

Liam