Perl: how to install the DateTime module for timestamp parsing

给你一囗甜甜゛ 提交于 2019-12-11 12:07:51

问题


I am using Perl for the first time, and I need to use the DateTime class to parse timestamps, compare timestamps, etc. However, I found that it is not included with Perl (I am using Strawberry 5.26.1.1) and needs to be separately downloaded and installed. After spending some time googling, I am still not sure where to download and how to install. I tried the following but it does not work. I have already set the http_proxy, http_proxy_user and http_proxy_pass variables.

PPM interactive shell (11.11_03) - type 'help' for available commands.
PPM> install DateTime
Install package 'DateTime?' (y/N): y
Installing package 'DateTime'...
Error installing package 'DateTime': Could not locate a PPD file for package DateTime
PPM>

Thanks.

来源:https://stackoverflow.com/questions/49487499/perl-how-to-install-the-datetime-module-for-timestamp-parsing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!