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

Open2 Api failure while installing Mead software

I am running into some issues trying to install a software called MEAD . I would appreciate if someone could have alook . I get the following error while installing /mead/bin # ./mead.pl GA3 Using system rc-file:…
rockstar
  • 3,512
  • 6
  • 40
  • 63
0
votes
1 answer

perl: inter-module variable use

I have a module misc with variable $verbose: use strict; use diagnostics; package misc; my $verbose = 1; and module mymod which uses misc: use strict; use diagnostics; use misc; package mymod; sub mysub ($) { ... ($misc::verbose > 0) and print…
sds
  • 58,617
  • 29
  • 161
  • 278
0
votes
2 answers

Mapping values with Column header and row header

I have some files with below data. sample File 1: sitename1,2009-07-19,"A1",11975,17.23 sitename1,2009-07-19,"A2",11,0.02 sitename1,2009-07-20,"A1",2000,17.23 sitename1,2009-07-20,"A2",538,0.02 I want to map the values in column 4 with column 2 and…
Space
  • 7,049
  • 6
  • 49
  • 68
0
votes
1 answer

Mason perl JSON module refuse to work

I'm using Mason in one of my projects and I have a problem using the module JSON. The page search.mhtml is working properly with other external modules (use DBI) but whenever I use the following code, the browser is giving me an error "No data…
Ricky Levi
  • 7,298
  • 1
  • 57
  • 65
0
votes
4 answers

Output is not valid for My type declaration

The below code gives some strange output. Can any one explain the problem? use warnings; my $P = 10; print "My Var: $P\n"; display(); my $P = 12; display(); sub display() { print "My Var: $P\n"; } output: My Var: 10 My Var: My Var: 12
seeram
  • 11
  • 3
0
votes
1 answer

Compilation failed in require - BEGIN failed

I started using Padre and while working on a particular program which works just fine when run from the command line, Padre shows a Compilation failed in require error message suggesting that there is a problem in BEGIN and I do not have a BEGIN…
Hameed
  • 2,227
  • 1
  • 21
  • 31
0
votes
1 answer

For How to make an XML Request in Perl -help required?

Being new to Perl and XML..Can any one guide me in order to do the following: I have to write a Perl Code which should do : Make a connection. Get the reponse of the connection which is connectionId and store that if in a variable. Close…
user1522786
  • 11
  • 1
  • 3
0
votes
1 answer

Connect gdb from Perl Script

I am writing perl script which is getting core from Production. I have got core and need to run the gdb on these core file. Can anyone provide me info to connect gdb from perl script.
user765443
0
votes
3 answers

Find Core File in multiple machine

I have got the requirement to find the core file in multiple box/machine and trigger email about core file generation. Do we have any utility which help us to find core in single machine or multiple machine. I believe we should have any utility to…
user765443
0
votes
2 answers

Perl error: Can't locate XFileConfig.pm in @INC

I'm trying to install a Perl script in my server. When I received Server access. I installed apache2, mod_perl, activated mod_rewrite in var/www/html when I try to execute install.cgi I get the following error: [Wed Jun 20 21:09:36 2012] [error]…
Hamza
  • 1,087
  • 4
  • 21
  • 47
0
votes
1 answer

How to Distribute/Bundle Math::Random with Perl Script?

I have a simple Perl script that uses Math::Random. Is there any way I can distribute the script with Math::Random so users don't have to install it? (A lot of my users don't have the library installed and don't have root permissions, and probably…
Greg
  • 45,306
  • 89
  • 231
  • 297
0
votes
3 answers

Why does my Perl script fail to connect to the database?

I have a Perl script which retrieves data from MySQL Database. this is the code: sub startSession{ my $self = shift; my $dsn = "dbi:".$self{platform}.":".$self{database}.":".$self{host}.":".$self{port}; print "$dsn\n" ; …
0
votes
1 answer

Can we start two ssh terminals from same expect script

I am using perl module "Expect" to achieve automation of interactive sessions. The script intends to spawn a ssh terminal on localhost(say).So the problem is can use two spawn commands (for spawning two ssh terminals)from the same script. In that…
chaitu
  • 1,036
  • 5
  • 20
  • 39
0
votes
1 answer

Optimal way of writing to a file after DB Query and then using this file as the data file for BCP in

Requirement is to copy a table say account in server A to table account_two in server B. There are many tables like this each having thousands of rows. I want to try BCP for it. The problem is account_two might have fewer cols than account. I…
Gfx
  • 1
0
votes
2 answers

How to make each bar clickable in a graph in perl

I have generated a graph. On click of each bar in the graph, I should be able to generate another graph. I am using GD::Graph module. If its not possible to make the bars clickable, is there a way where I can click the x-axis values at least? Thank…
Swati
  • 27
  • 1
  • 1