in reply to percentage while loop
Last given output might not be '100%'. You might want to force an update at the last iteration (using e.g. eof).#in the loop # update $percentage, e.g. 100 * $summed_size / $file_size; ... (printf STDERR "Progress: %3d%%\r", $percentage),$lastpercentage=int($ +percentage) if int($percentage) != $lastpercentage; ...
|
|---|