in reply to Re^3: How to amend character count.
in thread How to amend character count.
I am just commending to avoid confusion, OP on the open function has write mode > instead of read mode <.Because the OP opens this file with the intent of writing data to it, as shown in this code line:
So there is really nothing wrong with that.print $fh $count;
The OP code is reading from a file (passed as an argument to the program) and writing to another, opened explicitly with the open command.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to amend character count.
by thanos1983 (Parson) on May 07, 2017 at 18:26 UTC |