use MYDan::Util::ExpSSH; my $ssh = MYDan::Util::ExpSSH->new( ); $ssh->conn( host => 'foo', user => 'joe', pass => '/conf/file', sudo => 'user1', rsync => '-aP /tmp/foo user@host:/tmp/bar', #if rsync );
To install MYDan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MYDan
CPAN shell
perl -MCPAN -e shell install MYDan
For more information on module installation, please visit the detailed CPAN module installation guide.