A Perl module is a self-contained component of software for the Perl programming language.
0
votes
1answer
6 views
Perl: Data Input Module Not Working
Below are the contents of two files I am running:
Secure.cgi
MyModule.pm
The “sub scrub{}” subroutine in MyModule.pm was a subroutine in Secure.cgi but I wanted to
run it as a separate module ...
2
votes
0answers
26 views
Migrate a perl module
Suppose that I have a perl module Foo::Bar, initiated with module-starter and already have several packages under the namespace Foo::Bar and now I came to the conclusion it was a bad choice for name ...
0
votes
0answers
19 views
Perl's Net::LDAP “Bad file descriptor”
I'm getting "Bad file descriptor" everytime I run this script with 'verify' set to 'require':
#!/usr/bin/perl
use warnings;
use strict;
use Net::LDAP;
use Data::Dumper;
my $ldap = Net::LDAP->new( ...
-1
votes
1answer
18 views
perl - need to copy only certain text till special character into another file
PERL
I have a text file which contains following data
INPUT
ChainCtrlBuildChain() : ChainController.c
ChainCtrlDumpChain() : ChainController.c
ChainCtrlDumpChanCallback() : ChainController.c
...
2
votes
4answers
61 views
What is @ISA in Perl?
If I have a module with methods a and b and want to export them I do:
use Exporter;
our @ISA = qw (Exporter);
our @EXPORT = qw (a b);
What I don't understand is what does this line:
our ...
1
vote
2answers
54 views
Perl issue with local::lib
I am trying to use local::lib as I don't have rights on the system and I have downloaded a local library and used bootstrap technique.
perl Makefile.PL --bootstrap
make test && make install
...
0
votes
1answer
45 views
TreeBuilder in perl
Need help with TreeBuilder::XPath in perl
use strict;
use warnings;
use LWP::Simple;
use HTML::TreeBuilder::XPath;
my ...
1
vote
2answers
50 views
export vs export_ok in perl
I can not understand what is the difference/use case of EXPORT_OK vs EXPORT.
Most resources mentions something in the lines of:
@Export allows to export the functions and variables of modules ...
0
votes
1answer
44 views
Error in Perl modules which are already installed
I was using local library and I install the modules in my local library but now when i test my code now its giving following . I tried to install Net Particia again but its giving second error
1st ...
-1
votes
0answers
39 views
IP Lookup (Perl) [closed]
I am not able to understand the Net::Patricia module can any one guide me with short code.
I have IPs in one file and subnet in other.
And i need to find the subnet of first IP files by IP lookup ...
-1
votes
1answer
35 views
To delete Multiple block of data from a file in perl?
<test name="">
<class name="48.">
</class>
</test>
The above entry comes in my file for around four times and I want to remove those entries from the file, so I'm ...
0
votes
0answers
6 views
Is it ok to install perl module from rpm if the same module is already installed from CPAN?
I have several perl modules installed manually from CPAN, and now i need to install an rpm (scmbug-server-0.26.22-1.noarch.rpm) which has failing dependencies what is only natural since they are not ...
0
votes
1answer
40 views
Any gotchas for Activestate Perl versus POSIX perl
I have a script that relies on the DateTime module.
As part of my move to integrate my development into one environment, I've changed from command line in linux and cygwin to Eclipse on Windows 7.
In ...
-2
votes
0answers
54 views
read the raw unknown text file and identify the file [closed]
I have a directory with multiple files.(for EG: School Info) The files are named as follows ABC, DEF, XYZ and so on. ABC contains Students names, DEF contains Teachers names and experience, XYZ ...
0
votes
3answers
42 views
Adding special character at several places in a string in perl script
I read some raw data from my device. This data contains the IP address as well but in a different format. As you know the IP address is generally written in the format a.b.c.d. However I have data of ...