On Wed, 13 Jun 2001, Pate Mark-marpate1 wrote:
> I'm very new to perl (a week or so), so this may not be the best way to do
> this, but....
>
> for ($i=0; $i<10; $i++) {printf "%d\r",$i;}
Just to point out a more Perlish way to do this, rather the C-ish way
(since we're doing Perl and not C):
print "$_\r" for (0..9);
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
If you have to think twice about it, you're wrong.
- A Term::ReadKey question -- keep cursor put! Matt Cauthorn
- RE: A Term::ReadKey question -- keep cursor... Pate Mark-marpate1
- RE: A Term::ReadKey question -- keep cu... Brett W. McCoy
- RE: A Term::ReadKey question -- keep cursor... mark crowe (JIC)
- RE: A Term::ReadKey question -- keep cu... Dave Newton
- RE: A Term::ReadKey question -- keep cursor... Wagner-David
- RE: A Term::ReadKey question -- keep cursor... Evgeny Goldin (aka Genie)
- Re: A Term::ReadKey question -- keep cu... Steven Scott
- RE: A Term::ReadKey question -- keep cursor... Pate Mark-marpate1
- RE: A Term::ReadKey question -- keep cu... Dave Newton
