我想使用curl来查看页面的来源,如果该源包含与该字符串匹配的单词,那么它将执行打印.我该怎么办if $string contains?
在VB中它就像.
dim string1 as string = "1"
If string1.contains("1") Then
Code here...
End If
Run Code Online (Sandbox Code Playgroud)
类似的东西,但在Perl中.
我正在运行使用SSH的perl脚本,但它会输出以下错误:
无法在@INC中找到Net/SSH/Perl.pm(@INC包含:/ etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1/usr /在newone.pl第3行的lib/perl5/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10/usr/local/lib/site_perl.)BEGIN失败 - 编译在newone中止.pl第3行.
Perl似乎找不到Net/SSH/Perl.pm.为什么不能找到它以及如何安装它?