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


in reply to How to read the network file.

File::Remote - Read/write/edit remote files transparently.

You could also manually so ssh to the host you want and read/write files of the host(which has been done internally in the above module).