Questions tagged [perl]

Perl is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It's also a good language for many system management tasks. The CPAN is Perl's module repository and is where users should turn first for code that implements solutions to already-solved problems.

From the Perl documentation:

Perl is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It's also a good language for many system management tasks. The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal).


Free Perl Programming Books

If you are just starting out with Perl some of the references below may be worth looking in to.

596 questions
3
votes
1 answer

SELinux allow access for perl script via log rotate

I have a perl script that I want to run as a perorate script for log rotate. When I force log rotate to run from the command line as root, it works. However, when run through cron, SELinux prevents operation. I don't remember what the first error…
ibrewster
  • 387
  • 1
  • 4
  • 16
3
votes
4 answers

Multiple Developers, One Apache (with mod_perl)

I have multiple developers on one server, each with their own copy of the same perl codebase checked out of SVN. I want each developer to have their own subdomain pointing to their own copy of the codebase. I tried putting PerlSwitches inside , but…
aidan
  • 615
  • 4
  • 10
  • 23
3
votes
1 answer

GnuPG::Interface fails to install on CentOS 7

I'm trying to install a CentOS 7 server to run Request Tracker. By running make testdeps I can see all missing packages and make fixdeps is supposed to install this packages. There is one package that I can't install (GnuPG::Interface). This package…
Leandro
  • 133
  • 1
  • 4
3
votes
1 answer

postfix parameter default_privs

I have set default_privs=myuser in main.cf, which is a perl script, executed in the context of this user. In the perl script I added some debug to print out the user: my $exec_username = $ENV{LOGNAME} || $ENV{USER} ||…
markus
  • 1,080
  • 5
  • 18
  • 38
3
votes
1 answer

increase file size for log files from scripts started from postfix

I am using Postfix to run a script whenever a message is sent to a specific address. The script is a Perl script and it writes a log to a file using Log4perl. The log file is being rotated on a daily basis by Log4perl. It's working well except for…
illabout
  • 133
  • 6
3
votes
4 answers

Perl in place edit within a script

I need to edit a file in place within a perl script, so the oft used one liner: perl -p -e s///ig will not work for this situation. How do I get the same results from within a perl script? open(CRONTAB, "+
Shawn Anderson
  • 542
  • 7
  • 14
3
votes
2 answers

SunOS free command

I have SunOS 5.10 sparc server. I want to calculate system memory. I can easily find this in Linux using /usr/bin/free command. Can anyone please suggest me if there is any equivalent command in SunOS. It would be better if anyone can give me any…
Octopus
  • 191
  • 4
  • 11
3
votes
2 answers

How do I uninstall/remove CPAN?

Is there a way to completely remove CPAN from my machine? I tried searching Google for a way to do this, but all of the results are focused around uninstalling the modules.
norway-firemen
  • 143
  • 1
  • 1
  • 4
3
votes
2 answers

Installing perl-Time-HiRes on RHEL6.2 gives perl dependency error

I get the following when trying to install perl-Time-HiRes: host1:user1 > sudo yum install perl-Time-HiRes Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use…
andrewrjones
  • 251
  • 1
  • 3
  • 8
3
votes
3 answers

Debian Wheezy and SUID Perl

I just upgraded a Debian Lenny box to Wheezy, and found that suidperl is gone. Googling reveals that the upstream maintainers removed it; I need suidperl to run our mail installation, Open Webmail. I don't have time for this. Googling reveals no…
NXT
  • 371
  • 2
  • 7
3
votes
2 answers

Munin mysql plugins results inconsistent, with IPC::Sharelite store() error: Identifier removed

I've recently setup a munin-node on a CentOS server. All was working fine until I tried to add the apache plugin (which works fine). For some odd reason, the mysql plugins for munin that used to work ceased to work... I'm now getting a weird error…
tomzx
  • 163
  • 9
3
votes
1 answer

Cpan/m fails to install Cache::Cache because of method "set_size"

just starting out with perl (trying to get an Request Tracker install working): For some reason I can't install Cache::Cache! (or rather the tests are failing): Notes: perl 5.8.8 on CentOS 5.8 Final (x86_64, 2.6.18-308.13.1.el5), Apache 2.2.23 (I've…
3
votes
1 answer

Did not find 'zeroDotZero' in module SNMPv2-SMI

I have a perl script that searches through our switches to find which one hosts a given IP address; this script uses net-snmp libraries to poll through a daisy-chain of ethernet switches (think core / distribution / access) until it finds the…
Mike Pennington
  • 8,305
  • 9
  • 44
  • 87
3
votes
3 answers

SELinux is preventing Perl CGI script from accessing Oracle libraries

I'm trying to configure SELinux on a Red Hat Enterprise Linux 6.2 web server that runs Apache 2.2.15 and Perl 5.10.1, and connects to remote Oracle databases. The Oracle 11.2g client is installed. The PHP scripts that access Oracle are working, but…
slec
  • 143
  • 1
  • 6
3
votes
2 answers

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC

Having the following error while trying to execute a perl script(For LVM backup). Seeing some DBD module is missing. How would I resole it ? [root@localhost mylvmbackup-0.13]# ./mylvmbackup 20120804 02:26:06 Info: Connecting to…
Ahn
  • 181
  • 3
  • 5
  • 13