Questions tagged [perl-module]

A Perl module is a reusable portion of Perl code.

In Perl, modules are vital to object-oriented design and can provide static variables referenced similarly to those in C++. The package model improves code organization, by allowing the coder to import functions from external files and 'bless' new object instances. Further, perl allows the directory structure holding modules to aid in the description of an object hierarchy. Perl module files traditionally have the extension '.pm'

see perlmod - perldoc.perl.org for more information.

1358 questions
5
votes
2 answers

Different architectures in the same or different directory trees?

At $work, we maintain a set of Perl modules at a central location for easy inclusion via PERL5LIB. As there is a re-installation ahead and we need to provide the modules for both 32 and 64 bit architecture, we are wondering if it's better to install…
Thomas Kappler
  • 3,795
  • 1
  • 22
  • 21
5
votes
3 answers

Perl Programming and Distribution

I'm very new to Perl programming. I've just finished reading the Llama book. Up until now I have scripted in Bash, but I'm wanting to try out Perl and it's benefits over Bash scripting. I'm creating a script that uses a number of standard modules…
forquare
  • 324
  • 2
  • 16
5
votes
3 answers

How to add header, footer with images using PDF::API2::Lite?

Is it possible to add header(with text and one image) and footer (with page number) with images. I wrote below code to create a PDF document which shows png images. If this can be done easily with any other module, please suggest.Really appreciate…
Space
  • 7,049
  • 6
  • 49
  • 68
5
votes
2 answers

installing modules when using perlbrew

I am trying to use perlbrew to run a set of perl scripts. When I try installing dependencies for these perl scripts, they are installed into my system's perl version (5.18.X) and not the version I want to use (5.10.1). I have tried several…
mrk
  • 51
  • 4
5
votes
3 answers

Using cpanm to install Perl modules

Maybe it's a stupid question? If I install a module like File using cpanm File will it install everything under File, like File:Listing etc?
Frank
  • 7,235
  • 9
  • 46
  • 56
5
votes
2 answers

Perl: can't locate object method bar via package

I am new to this site, so bear with me, If this question has already been answered somewhere else already. I am trying to call a subroutine "bar" from a module "codons1.pm" , and I encounter the error: Can't locate object method "bar" via package…
bala83
  • 443
  • 4
  • 7
5
votes
2 answers

mysql_skip_secure_auth not skipping secure auth

Edit: From what I can tell, the root cause of this problem is that the right Perl modules are being installed, but the wrong mysql.so file is being loaded. my $dsn = "DBI:mysql:" . "database=$db;" . "host=$dbhost;" .…
Thomas Thorogood
  • 2,150
  • 3
  • 24
  • 30
5
votes
1 answer

How can I use vendor-packaged modules from a Perl I compiled myself?

My OS-Distribution provides the rpm-package "perl-obexftp", which installs the Modul "OBEXFTP". These are the files: /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/OBEXFTP.pm …
sid_com
  • 24,137
  • 26
  • 96
  • 187
5
votes
4 answers

What's a good way to refactor a monster Perl module into submodules?

I have a Perl module for a project. I have maybe a dozen programs hanging off it and a lot of it is garbage. I hadn't spent much close personal time with DBI before, so that part is fixable, but the big thing is that it is big. Literally 2KLOCs. It…
Dave Jacoby
  • 417
  • 1
  • 11
  • 24
5
votes
3 answers

How to check today is Monday in Perl ?

How can I check if today is Monday in Perl? What modules needs to be installed? Can anyone help me with an example?
Monisha
  • 429
  • 2
  • 6
  • 22
5
votes
4 answers

Perl Module to convert numbers to letter notation

Is there a perl module that will convert a number to a letter and vice versa? For instance 1 = A 2 = B 3 = C ... 27 = AA 28 = AB 29 = AC ... 53 = BA 54 = BB 55 = BC So on and so forth.
Jeffrey Ray
  • 1,244
  • 2
  • 9
  • 20
5
votes
1 answer

Install GD Failure

I would like to install the modules required to run Circos. One of the required modules is GD. *OS: Mac OS X Version 10.7.4 Installed libgd: brew install libgd* Following cpan[1]> install GD Test Summary Report ------------------- t/GD.t …
Drew
  • 2,583
  • 5
  • 36
  • 54
5
votes
1 answer

What is the purpose of two seperate META files after building a distribution?

When building a new distribution 2 meta files are generated. One uses the YAML format, and the other JSON. As far as I know, these are only used by other CPAN clients or other applications that want to have access to a meta file(for whatever…
CODEBLACK
  • 1,239
  • 1
  • 15
  • 26
5
votes
2 answers

Memory Management in perl

I have facing a weird issue of handling memory in perl. I am working in a perl application which uses pretty big hash-structures. I am assigning the has ref to and fro objects. But at the end it seems even if I am deallocating the object and the…
Kallol
  • 302
  • 4
  • 16
5
votes
3 answers

How to specify test prerequisites in the ExtUtils::MakeMaker Makefile.PL

PREREQ_PM specifies the runtime prerequisites, but how to specify which modules are required to run the test cases? Should I use BUILD_REQUIRES for this?
Tim
  • 13,904
  • 10
  • 69
  • 101