use Term::ProgressBar; my $file = ...; my ( $line_count ) = qx{ wc -l $file } =~ /^(\d+)/; my $pbar = Term::ProgressBar->new({count => $line_count }); open my $fh, '<', $file or die "$file: $!"; my $i = 0; while (<$fh>) { chomp; $pbar->update($i++); ... }
In reply to Re: Real Time Progress Bar in console
by blakew
in thread Real Time Progress Bar in console
by westrock2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |