File::Slurp::Remote - read/write files on remote systems using ssh.
use File::Slurp::Remote; write_remote_file($host, $file, @contents); @lines = read_remote_file($host, $file); $whole_thing = read_remote_file($host, $file);
This is similar to File::Slurp, but it reads and writes files on remote systems using ssh to get there.
ssh
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.
$File::Slurp::Remote::scp
$File::Slurp::Remote::SmartOpen::ssh
Copyright (C) 2008-2007,2008-2010 David Sharnoff. Copyright (C) 2007-2008 SearchMe Inc. Copyright (C) 2011 Google Inc. This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.
To install Tie::Function::Examples, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Function::Examples
CPAN shell
perl -MCPAN -e shell install Tie::Function::Examples
For more information on module installation, please visit the detailed CPAN module installation guide.