perl-module Questions

2

Solved

I have a module that I wrote with some utility functions. One of the functions is just a usage statement (recommended by user @zdim) use 5.008_008; use strict; use warnings; # Function Name: 'us...
Kenny asked 24/12, 2017 at 23:38

3

I came across this line a lot of times in perl modules but I could not figure out what this exactly means. my ($self, %myInputs) = @_; Kindly explain me the statement so that I can proceed.
Perpetuity asked 17/12, 2012 at 6:57

2

Disclaimer I'm not sure I'm using the right terms. It may not be the optree responsible for the bloat mentioned below: it may be the symbols loaded by DynaLoader that are not freed. Is it possible...
Triturable asked 13/10, 2017 at 21:27

1

Solved

I am writing a Perl module that involves some very complicated regular expressions that are nearly impossible to debug without a tool to help me. I figured the Regexp::Debugger module would be the ...
Hockenberry asked 25/9, 2017 at 21:14

2

Solved

I am receiving the following server error on a perl script: malformed header from script. Bad header=: youtube_perl.pl, Here is my source code: #!"C:\XAMPP\perl\bin\perl.exe" -T use st...
Agoraphobia asked 25/1, 2011 at 18:0

2

Solved

I installed Rakudo, the Perl 6 interpreter, by: sudo apt-get install rakudo I am following a tutorial about installation of Perl 6 modules: http://perl6maven.com/how-to-install-perl6-modules ...
Wooden asked 5/8, 2017 at 23:36

4

Solved

Here is my problem. I am running OS X v10.7 (Lion) and want to set up an old Perl program I have written (was then using a Windows System with ActivePerl and then its ppm). I read to use...
Villiers asked 5/2, 2012 at 6:28

6

Solved

I am trying to use the po2json parser/converter from the JS gettext library (http://jsgettext.berlios.de/), but when I try to convert I get this error: Can't locate JSON.pm in @INC (@INC contains:...
Colorfast asked 19/8, 2012 at 14:34

3

Solved

I would like to dynamically get a list of either function names (as strings) or function references from any arbitrary Perl module available on my system. This would include modules that may or may...
Dichromaticism asked 9/12, 2010 at 23:49

2

Solved

I am reading through O'Reilly's Perl Objects, References & Modules, more specifically its section about modules. It states that when using use Some::Module you can specify an import list. From ...
Barbicel asked 12/4, 2017 at 8:48

5

Solved

I am fairly new to scripting with perl. I am trying to ssh into a server and perform some commands. I have to provide a username and password. When trying to run the script that i have so far (cod...
Smoker asked 9/5, 2011 at 16:23

6

Solved

One of the problems of using CPAN is that "there's more than one module to do it". I often wonder what everyone else is using. Is there any information on the relative popularity of CPAN mod...
Genvieve asked 8/3, 2011 at 1:13

1

Solved

Before I use cpanm to install some Perl modules on a "new" (to me) system, I would like to know where they will get installed by default. I don't see any kind of a dry-run option, which is what I'...
Lipread asked 27/1, 2017 at 22:18

4

Solved

I'm using DBIx::Class in my perl script to interact with a sqlite database. When doing inserts/searches, what will DBIx::Class consider 'true' and 'false'? eg: $schema->resultset('SomeObject'...
Awildaawkward asked 25/9, 2012 at 22:51

3

Solved

I read the explanation even from perldoc and StackOverflow. But there is a little confusion. use normally loads the module at compile time whereas require does at run time use calls the import fu...
Retrocede asked 14/8, 2013 at 12:8

2

Solved

I don't have root access on a remote box I'm working with, so I'm using a combination of cpanm and local::lib as described here to install CPAN modules to my local directory on the box. Using cpanm...
Mum asked 18/1, 2012 at 17:14

4

I have an array reference like below: my $strings = [qw(a b c d)]; I want to form all possible combination and create an array of array as: my $output = [qw(qw([a],[b],[c],[d],[a,b],[a,c],[a,d]...
Adriaadriaens asked 22/9, 2016 at 7:12

2

use WWW::Mechanize; $mech = new WWW::Mechanize; $mech->get("http://www.google.com"); $html = HTML::TreeBuilder::XPath->new_from_content($mech->content); sub test { use HTML::TreeBuilder::...
Imperturbation asked 22/9, 2016 at 1:37

4

Solved

We are currently using 5.6 version of Perl in our organisation, along with MySQL and Apache, but now the client wants to upgrade Perl to v5.24. What are all the major changes and key points that mu...
Daunt asked 12/8, 2016 at 8:56

4

Solved

I'm pretty sure that I read somewhere that it's possible, but there are a few gotchas that you need to be aware of. Unfortunately, I can't find the tutorial or page that described what you need to ...
Sendal asked 17/11, 2009 at 13:32

1

Background: I am working to migrate a Linux server to a newer one from Ubuntu 10.04 to 12.04 This server is responsible for executing several a number of Perl modules via crontabs. These Perl Mod...
Imbue asked 28/12, 2015 at 19:19

1

Solved

I have installed a perl module, say XYZ then a folder is created that contains many .pm files. I copied the folder and put it in any other system where XYZ is not installed. So, I'm able to use met...
Cochlea asked 9/12, 2015 at 7:12

2

Solved

How can I add conditional prereqs to dist.ini for each platform (Windows/Non windows) I want the module to support? For example in perl code I could do: if ( $^0 eq 'MSWin32' ){ require Win32::F...
Grammer asked 21/6, 2014 at 8:17

3

Solved

I am using more modules in my perl program. example: use File::copy; so likewise File module contains Basename, Path, stat and etc.. i want to list all the subroutine(function) names which is in F...
Spitz asked 28/9, 2015 at 10:30

2

Solved

When I use <stdin> in Perl module (*.pm) files it's not reading input from the keyboard, but when I use <STDIN> in the same place it works fine. Why is it not getting input when I use ...
Adrianneadriano asked 2/7, 2015 at 13:2

© 2022 - 2024 — McMap. All rights reserved.