简体   繁体   English

LWP :: Simple getstore在Windows中不起作用

[英]LWP::Simple getstore does not work in Windows

As a part of my Perl script I have the following simple command which is supposed to download a $url and store its contents to a file $file : 作为我的Perl脚本的一部分,我有以下简单命令,该命令应该下载$url并将其内容存储到文件$file

getstore("$url", "$file");

This works perfectly fine when I run it on my fedora Linux, however when I run the same code on Windows, it seems that the $file remains empty.. 当我在fedora Linux上运行它时,它工作得很好,但是在Windows上运行相同的代码时,似乎$file仍然为空。

This is very strange since, as I mentioned, there was no change to the code and this command is very basic. 正如我提到的那样,这很奇怪,因为代码没有更改,并且此命令非常基本。

Maybe anyone has a clue why such behavior might occur? 也许有人知道为什么会发生这种行为?

Thanks! 谢谢!

Finding a proxy quite easy sometimes: 有时有时很容易找到代理:

Try to open a nonexisting webpage and most of time the PROXY reports an error and print out its own details. 尝试打开一个不存在的网页,大多数情况下,PROXY报告错误并打印出自己的详细信息。

Try this: -.ds.com Check the line: Your web proxy is:.... 试试这个:-.ds.com检查以下行:您的Web代理是:....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM