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
-1
votes
1 answer

Install Perl modules

I want to migrate a code from Linux to Windows 7. I use MinGW to run perl. Regarding this code I need to install 'Clone 0.31', 'Data-Dumper 2.121', Hash-Merge 0.11' and 'threads 1.71' packages. But, the version of these packages that I have are good…
-1
votes
1 answer

How to transfer data from excel to powerpoint using Perl?

I am using Active Perl from ActiveState and would like to to transfer data from an Excel sheet to a particular table on the slides in a particular Power point file. How do I do it in Perl?
-1
votes
2 answers

perl module web::scraper

I want to extract the text only for heading Node Object Methods from a webpage. The specific html part is as follows:

Node Object Properties

The "DOM" column indicates in which DOM Level the property was introduced.

-1
votes
1 answer

build perl module Proc::ProcessTable with perl of 5.16.1 and faild in the phase of "make test"

I am building the Proc::ProcessTable with perl of 5.16.1 make's output: Skip blib/lib/Proc/ProcessTable.pm (unchanged) Skip blib/lib/Proc/Killall.pm (unchanged) Skip blib/lib/Proc/example.pl (unchanged) Skip blib/lib/Proc/Killfam.pm…
-1
votes
2 answers

Trouble understanding HTML::Element documentation in Perl

I was looking into HTML:Element documentation and came across attr_get_i method which according to documentation states that: In list context, returns a list consisting of the values of the given attribute for $h and for all its ancestors…
RanRag
  • 48,359
  • 38
  • 114
  • 167
-1
votes
1 answer

Passing Main script variables into Perl Modules

I am writing a Perl script that is run by a user and makes use of the current Linux environment as variables and other variables as well. The environment settings may change and be different from what they were originally. However, I'm trying to…
Eugene K
  • 3,381
  • 2
  • 23
  • 36
-2
votes
2 answers

mkdir call getting failed in Perl

I am trying to create a directory using Perl. But this call fails. However when I try to create the same directory structure in shell prompt, it works fine. Could someone please let me know why I am not able to create the directory in the directory…
Rajath
  • 215
  • 5
  • 13
-2
votes
1 answer

Loading Perl Modules from non-standard directories

How to load Perl modules using non-standard directories? I download the trace module from cpan website and put into non-standard directories(/home/nrama/perl-script). but It doesn't taking my non-standard directories while executing below script.…
Nataraj
  • 852
  • 2
  • 14
  • 29
-2
votes
2 answers

perl regex scenario

Based on the user input i.e. $release_num, I have to take a call on a particular action. Its working in certain cases but fails in some other cases. Need help in refining the final solution. Code: my $release_num; my $short_release_num =…
Yash
  • 2,944
  • 7
  • 25
  • 43
-2
votes
2 answers

Insert lines at specific location in file using perl script

Want to add a new line in a file using perl script. I have tried but no luck if($correctedContents[$i] ~= /second line/){ @data = $correctedContents[$i] push (@data, '\n TEST Line'); For example: add a "TEST Line" into a file whenever it find…
Beginner
  • 77
  • 1
  • 9
-2
votes
1 answer

How to move a file locally to a FTP sever

I am trying to connect to a FTP server using perl. I am using the below code and when I run the code in CMD I get nothing in return therefore I think it has made a connection. I am wondering if there is a way copy a CSV file from my desktop to the…
Rich
  • 177
  • 2
  • 3
  • 13
-2
votes
2 answers

How do Perl modules "work"?

I am confused about Perl modules. I get that a module can be used to dump a whole bunch of subs into, tidying main code. But, what is the relationship between modules? Can modules "use" other modules? Must I use export, or can I get away with…
user4281768
-2
votes
3 answers

removing deplicate entries based on first column and keeping the latest entry, using Perl

i need some perl code for the following problem. thanks in advance for your efforts. my input is in a file in this format: 'name' 'version number' tech-sgla-zustand-ts.ini 1.1 tech-sgla-zustand-ts-feld.ini 1.1 tech-sgla-stamm-cds-feld.ini …
ajay477
  • 21
  • 1
  • 3
-2
votes
1 answer

How to check a text exist on page using Selenium::Remote::Driver

I have to check whether a particular text exists on a page using Selenium::Remote::Driver. I want to enter a particular text in the search and check whether this text exists on the page type a text in seach-box my $such_inhalt = "fuer"; my…
perlfg
  • 59
  • 1
  • 7
-2
votes
1 answer

Object method not found in Perl module : Imager

I am trying to use Imager module to generate gif images but I am getting an error Can't locate object method "_valid_image" Can't locate object method "_valid_image" via package "D:\work...graph1.bmp" (perhaps you forgot to load…
Rajinder
  • 41
  • 1
  • 9