cpan

What constitutes effective Perl training for non-Perl developers? [closed]

与世无争的帅哥 提交于 2019-12-03 04:17:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I've been working with Perl long enough that many of its idiosyncracies have become second nature to me. When new programmers join our group, they frequently have little to no experience with Perl, and it's usually my task to train them (to the extent necessary). I'd like to

Need more examples on how to use Spreadsheet::ParseExcel

不羁的心 提交于 2019-12-03 03:42:54
I have been using the Spreadsheet::ParseExcel to list the contents of spreadsheet. I've seen several examples on how to dump the entire spreadsheet. I really would like to see how to use this script more selectively. The example below from IBM basically dumps the content of all cells that have data. #!/usr/bin/perl -w use strict; use Spreadsheet::ParseExcel; my $oExcel = new Spreadsheet::ParseExcel; die "You must provide a filename to $0 to be parsed as an Excel file" unless @ARGV; my $oBook = $oExcel->Parse($ARGV[0]); my($iR, $iC, $oWkS, $oWkC); print "FILE :", $oBook->{File} , "\n"; print

DBD::Oracle installation causing error

拟墨画扇 提交于 2019-12-02 23:31:40
问题 I want to connect to an Oracle Database through Perl. For this, I'm trying to install DBD::Oracle from CPAN by using the following command: [root@localhost Admin]# cpan DBD::Oracle While running above command on my Linux terminal, I'm getting the following error: [root@localhost Admin]# cpan DBD::Oracle CPAN: Storable loaded ok (v2.45) Going to read '/root/.cpan/Metadata' Database was generated on Thu, 27 Feb 2014 06:17:02 GMT Running install for module 'DBD::Oracle' CPAN: YAML loaded ok (v0

How to test/classify CPAN modules for utf8 correctness

旧街凉风 提交于 2019-12-02 20:53:00
Here is an excellent question and the wonderful tchrist 's answer with 7+24+52 advices&comments how to make an perl program utf8 safe. But here is 19k CPAN modules. What is possible to do for differentiating "good" and "bad" ones? (from the utf8's point of view) For example: File::Slurp if you will read the file with #use strict encoding warnings utf8 autodie... etc.... my $str = read_file($file, binmode => ':utf8'); you will get different results based on command line switches, and perl -CSDA will not work. Sad. (Yes, i know than Encode::decode("utf8", read_file($file, binmode => ':raw'));

The future of Perl? (Perl 6, employability)

对着背影说爱祢 提交于 2019-12-02 20:33:35
I've found a few related questions, like Python vs. Perl (now deleted) and Is Perl Worth it? (now deleted), but I can't seem to find anything that directly addresses this question. Is there a legitimate future in Perl? I work in a Perl shop right now, and I came from PHP so I see some of the advantages of an arguably "lower" level language when doing things on the server-level, but it seems to me a lot of the tasks in Perl can be performed more quickly in PHP, and SOME ARGUE (subjective, not my opinion) that Python does these tasks in a more explicit way that's easier to maintain. Is having

DBD::Oracle installation causing error

折月煮酒 提交于 2019-12-02 13:23:45
I want to connect to an Oracle Database through Perl. For this, I'm trying to install DBD::Oracle from CPAN by using the following command: [root@localhost Admin]# cpan DBD::Oracle While running above command on my Linux terminal, I'm getting the following error: [root@localhost Admin]# cpan DBD::Oracle CPAN: Storable loaded ok (v2.45) Going to read '/root/.cpan/Metadata' Database was generated on Thu, 27 Feb 2014 06:17:02 GMT Running install for module 'DBD::Oracle' CPAN: YAML loaded ok (v0.88) Running make for P/PY/PYTHIAN/DBD-Oracle-1.70.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN:

How to make “prereqs” of CPAN::Meta::Spec require a distribution instead of a package?

夙愿已清 提交于 2019-12-02 11:24:27
问题 I'm researching about how to package some of my Perl apps and better manage their dependencies to make distribution easier for me and my customers, which most likely doesn't include uploading to CPAN at all. Instead, I would provide custom repos if necessary or, more likely, access to SCMs like Subversion. CPAN::Meta::Spec seems to provide what I need to describe my apps, their dependencies and even where to get them from, but what I'm wondering is about the level of detail of pre-requisites.

Perl IPTables Module Installation Error

时光总嘲笑我的痴心妄想 提交于 2019-12-02 10:51:10
I've been trying to install the IPTables module for perl http://metacpan.org/pod/IPTables::IPv4 and I've been running into errors during installation. I've tried installing using the CPAN in shell as well as downloading the tarball form the link above. Both installation give me errors. I am not sure how to get the dump from CPAN but what I can get is a dump of my shell when I run the MAKE file from the tarball: [root@localhost IPTables-IPv4-0.98]# make make -C libiptc/ all make[1]: Entering directory `/home/student/Downloads/IPTables-IPv4-0.98/libiptc' gcc -o libip6tc.o -c libip6tc.c -I..

How to make “prereqs” of CPAN::Meta::Spec require a distribution instead of a package?

心已入冬 提交于 2019-12-02 04:42:21
I'm researching about how to package some of my Perl apps and better manage their dependencies to make distribution easier for me and my customers, which most likely doesn't include uploading to CPAN at all. Instead, I would provide custom repos if necessary or, more likely, access to SCMs like Subversion. CPAN::Meta::Spec seems to provide what I need to describe my apps, their dependencies and even where to get them from, but what I'm wondering is about the level of detail of pre-requisites. The spec contains the following sentence: The set of relations must be specified as a Map of package

Net::SSLeay won't install

一世执手 提交于 2019-12-01 19:55:21
cpan Net::SSLeay Running install for module 'Net::SSLeay' Running make for M/MI/MIKEM/Net-SSLeay-1.55.tar.gz Has already been unwrapped into directory /root/.cpan/build/Net-SSLeay-1.55-v9rgJp Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible I have installed all libs of this post: install perl module Net::SSLeay through cpan I also tryed to install it manually and during make command I had this log: SSLeay.c:8143: error: declaration for parameter ‘XS_Net__SSLeay_BIO_write’ but no such