Have you looked into using the 3-argument form of open? It's safer just in case $host_file starts with a '<' or a '>'; this could change what your code does.
Beyond that, +> opens the file for both read/write but +< is probably better because +> would clobber the file first. I don't see where you are attempting to append anything to the file though...
In reply to Re: Openind file for read+append
by Riales
in thread Openind file for read+append
by jaldama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |