Strawberry Perl SCP
I'm trying to follow the example shown in Net::SCP
I'm using strawberry perl with eclipse in my windows dev machine. Eventually the script will be run on a linux server to distribute some config files as part of a deploy process.
Eclipse complains that use Net::SCP qw(scp iscp);
can't be located:
Can't locate Net/SCP.pm in @INC (you may need to install the Net::SCP module) (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .)
Since I'm new to perl, my question is a multi-parter. Is the above example a good one to follow? If so, how do I install the missing module. If it is not, what alternative should I use?
Is the above example a good one to follow?
Net::SCP
is just a simple wrappers around ssh and scp commands.
Given you're developing on Strawberry Perl on Windows, you probably won't have access to these system commands and therefore won't be able to use the module.
The #See Also section states: For a perl implementation that does not require the system scp command, see Net::SFTP
instead.
If so, how do I install the missing module.
To install modules use cpan
or cpanm
as documented at http://www.cpan.org/modules/INSTALL.html
上一篇: 需要更改草莓Perl的shebang?
下一篇: 草莓Perl SCP