in reply to Re: How to amend character count.
in thread How to amend character count.

I am wondering how you are reading the file.

Using the magic ARGV handle - <> in perlop.

I do not know exactly why you want to read and write to your file

OP never said they wanted to.

Your code produces different answers from the OP's, the correct answer is "107 251 ".