I have written a perl script which will write some output to a file. However, it takes about 2-3 minutes for the script to complete due to the amount of data involved. So, I wanted to show some progress bar so that user would know that something is going on and that the script is not stuck.
I checked on the CPAN and find there are lots of modules for this job. However, all of them need a predefined MAX counter as an input. Now, in my case I cannot define the MAX counter because it is not constant. The number of items the script will be working on with is not constant.
So is there a way to display progress bar in this case wherein I do not have to provide a MAX counter.