in reply to Clarification on the write read mode of filehandling

I_love_perl:

From the docs (perldoc -f open:):

You can put a '+' in front of the '>' or '<' to indicate that you want both read and write access to the file; thus '+<' is almost always preferred for read/write updates--the '+>' mode would clobber the file first.

...roboticus

When your only tool is a hammer, all problems look like your thumb.