in reply to Letter by letter
Why the sleep after each print? Are you perhaps suffering from buffering?
If not, my initial thought when I think about printing a string letter by letter would be:
$| = 1; print $_ foreach (split '', $string);
Edit: I took a second look at the code you provided. I'm really not sure I understand what you're trying to do now. The second bit of the for loop is supposed to be a test that tells the loop when to stop, but since you're just assigning to $i, I'm pretty sure that loop will run forever.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Letter by letter
by DaveMonk (Acolyte) on Apr 20, 2012 at 18:33 UTC | |
by Riales (Hermit) on Apr 20, 2012 at 18:41 UTC | |
by tobyink (Canon) on Apr 20, 2012 at 23:14 UTC |