cpan

Why can't I simply copy installed Perl modules to other machines?

家住魔仙堡 提交于 2019-12-01 05:59:17
Being very new to Perl but not to dynamic languages, I'm a bit surprised at how not straight forward the manage of modules is. Sure, cpan X does theoretically work, but I'm working on the same project from three different machines and OSs (at work, at home, testing in an external environment). At work (Windows 7) I have problem using cpan because of our firewall that makes ftp unusable At home (Mac OS X) it does work In the external environment (Linux CentOs) it worked after hours because I don't have root access and I had to configure cpan to operate as a non-root user I've tried on another

CPAN installing modules into perl5 instead of site_perl

两盒软妹~` 提交于 2019-12-01 04:45:48
问题 I'm trying to do a temporary install of some cpan modules into a custom folder (/tmp/perl). So I have amending the build install base with... o conf mbuildpl_arg "--install_base /tmp/perl" o conf makepl_arg "INSTALL_BASE=/tmp/perl" Which works fine, the modules get installed into that directory now. I also set PERL5LIB with PERL5LIB=/tmp/perl/lib/5.14.2/:/tmp/perl/lib/site_perl/:/opt/perl/lib/5.14.2/:/opt/perl/lib/site_perl/: Note, this is all just temporary, on a virtual server which will be

When should I use Perl CGI instead of PHP (or vice versa)?

房东的猫 提交于 2019-12-01 03:05:32
For hobby purposes, I have a shared space on a hosting server that is providing, as many of them are, both PHP and Perl CGI. I have read on several places that CGI scripts are obsolete now, I think mainly for performance issues (like Is PHP or vanilla Perl CGI faster? ). But since I just started studying Perl, I wouldn't want to waste time on implementing solutions in PHP that are way easier (or only possible) in Perl. Also there are the boilerplate issues, I'm aware of CPAN (that is the existence, not yet the content), but not familiar with PHP libraries (although I have no doubt they exist).

How to parse XML and create a tree structure in Perl

我的未来我决定 提交于 2019-11-30 23:27:08
I am parsing a XML file with XML::Simple . Is there any way to get a tree form from the XML? If so please explain with example or suggest a CPAN package. I would like to know which tag I have to process after column and so on. There is no sequence for the tags. The column tag can appear after Table or display_name many times. Tab column Table column display_name column display_name XML: <Tab> <column> <display_name>xyz</display_name> <display_name>pqr</display_name> </column> <Table> <column><display_name>Department</display_name></column> </Table> <display_name>abc</display_name> <column>pwd<

Which CPAN module would you recommend for turning HTML into plain text?

半城伤御伤魂 提交于 2019-11-30 22:17:55
Which CPAN module would you recommend for turning HTML into formatted plain text? One strict requirement is that the module must handle Unicode characters. I like HTML::FormatText and HTML::FormatText::WithLinks See the example script htext that comes with HTML::Parser . 来源: https://stackoverflow.com/questions/1934638/which-cpan-module-would-you-recommend-for-turning-html-into-plain-text

How to parse XML and create a tree structure in Perl

烈酒焚心 提交于 2019-11-30 18:27:42
问题 I am parsing a XML file with XML::Simple. Is there any way to get a tree form from the XML? If so please explain with example or suggest a CPAN package. I would like to know which tag I have to process after column and so on. There is no sequence for the tags. The column tag can appear after Table or display_name many times. Tab column Table column display_name column display_name XML: <Tab> <column> <display_name>xyz</display_name> <display_name>pqr</display_name> </column> <Table> <column>

CPAN first launch (Proxy Configuration)

被刻印的时光 ゝ 提交于 2019-11-30 17:38:17
问题 i need to run cpan trough proxy but when i try to configure i got errors and cant enter to cpan for the first time root@srv-linux01:~# cpan CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will enter an interactive dialog for each configuration option instead. Would you like to configure as much as possible automatically? [yes] no On proxy settings: If you're accessing the net via proxies, you can specify them in the CPAN configuration or

ida导出gdl,gdl转图片

我与影子孤独终老i 提交于 2019-11-30 17:14:35
ida导出gdl Create flow char GDL --> 流程图 Create call graph GDL --> 函数调用关系 导出gdl文件。 gdl转图片 https://metacpan.org/pod/release/TELS/Graph-Easy-0.64/bin/graph-easy ;安装Graph::Easy模块 > cpan Graph::Easy ;转换gdl文件为png > graph-easy --from gdl --input=graph.gdl --png --output=graph.png 效果 流程图,转换为图片后的效果, 函数调用关系,转换为图片后的效果, 来源: https://my.oschina.net/yeahlife/blog/3112421

Installing a perl module from CPAN on XAMPP for Windows

痞子三分冷 提交于 2019-11-30 15:42:34
I'm pretty rusty with Perl and I don't think it's helping that I'm running it in Windows. I'd like to install this module. I tried the instructions here to install a CPAN module, but it fails trying to install App::cpanminus (the very first step.) I tried just running cpan Config::Simple and it didn't work either. In both situations, it fails with this error message: Unwrapping had some problem, won't try again without force Had problems unarchiving. Please build manually Running make test Make had some problems, won't test Running make install Make had some problems, won't install Does CPAN

How can I install local modules with the cpan tool?

女生的网名这么多〃 提交于 2019-11-30 15:41:32
my admin has given me sudo rights for cpan I also need to install a couple of non-CPAN modules (Atlassian Crowd -> svn connector) to the global PERL5LIB. I vaguely remember that cpan can install from local sources, without pulling modules from the web. any pointers? can I do it or should I just have him install those modules manually as root (a major hassle for me)? thanks! If you want to install the Perl distribution in the current directory, use the dot instead of a filename: cpan . If you are using one of the latest versions of the cpan program (not the one that currently comes with CPAN.pm