Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It works, but it looks a bit silly with the cursor jumping all over the place. I was just wandering if there isn't a more elegant way of doing this. Or maybe even a textual progress bar like:my $percentage = sprintf("%.1f",$lineCounter/$linesInFile*100); print "\b\b\b\b\b\b\b\b\b\b".$percentage."%";
showing the progress. Thanks for any help.|************ |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command line output of Perl script
by gellyfish (Monsignor) on Sep 09, 2005 at 10:15 UTC | |
|
Re: Command line output of Perl script
by adrianh (Chancellor) on Sep 09, 2005 at 10:33 UTC | |
|
Re: Command line output of Perl script
by marto (Cardinal) on Sep 09, 2005 at 10:09 UTC | |
|
Re: Command line output of Perl script
by blazar (Canon) on Sep 09, 2005 at 10:13 UTC | |
|
Re: Command line output of Perl script
by GrandFather (Saint) on Sep 09, 2005 at 10:11 UTC | |
|
Solution: Command line output of Perl script
by Anonymous Monk on Sep 09, 2005 at 13:13 UTC | |
by ikegami (Patriarch) on Sep 09, 2005 at 16:15 UTC |