How do I download a file using Perl?

后端 未结 4 600
天涯浪人
天涯浪人 2020-12-23 10:14

I\'m running Perl on Windows XP, and I need to download a file from the URL http://marinetraffic2.aegean.gr/ais/getkml.aspx.

How should I do this? I have attempted u

4条回答
  •  庸人自扰
    2020-12-23 10:31

    If downloading that file is all you actually do, you'd better go with @davorg's answer.

    If this is part of a bigger process, you access the ressource you downloaded as a string using method content on your $mech object.

提交回复
热议问题