On my (non-ANSI) terminal I see the 0 printed, then the escape string followed by a digit for the digits 1 .. 9 at one second intervals. Are you sure you have the escape string right? How much delay from start until the 9 appears? Does it work if you omit the escape string (that is, just print the digits at one second intervals)?
You seem to be learning Perl. I'd strongly recommend that you use strictures (use strict; use warnings;). You should also use a more Perlish for loop to reduce potential coding errors and make the code easier to read:
for my $i (0 .. 9) { ... }
In reply to Re: Problem with print
by GrandFather
in thread Problem with print
by digitalpbk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |