NAME

File::Slurp::Remote - read/write files on remote systems using ssh.

SYNOPSIS

use File::Slurp::Remote;

write_remote_file($host, $file, @contents);

@lines = read_remote_file($host, $file);

$whole_thing = read_remote_file($host, $file);

DESCRIPTION

This is similar to File::Slurp, but it reads and writes files on remote systems using ssh to get there.

It uses ssh/scp to get to the remote systems. You can override the copy command by redefining $File::Slurp::Remote::scp. You can override the remote shell command by redefining $File::Slurp::Remote::SmartOpen::ssh.

LICENSE

This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.