http://www.perlmonks.org?node_id=891127


in reply to Re^8: incrementing already existing file
in thread incrementing already existing file

Show us the code you tried. For that desired output, the modifications to the code I posted are not that complicated, especially with the suggestions that I already made. What I already said about collecting values from MYFILE will still work. Here are some additional hints to create the output you want:

That's all there is to it. Give it another go and post back with your code if you need more help.