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
6
votes
3 answers

Run Perl CGI Scripts On CentOS 7 With Apache/Httpd

My CGI Perl scripts CentOS 7 are not running correctly, they are either showing up as plain text or I am getting a server error. I've been placing my scripts into the default /var/www/cgi-bin directory with no luck. I tried to place CGI scripts into…
Joseph
  • 183
  • 1
  • 1
  • 10
6
votes
2 answers

How to set up Gitweb

I have set up Git on a server, using gitosis to control commit access. I would like to configure my Git system so that anyone inside our firewall can have read access to the Git repository, and I would like to set up Gitweb as well. I have found…
steveha
  • 1,019
  • 3
  • 11
  • 16
6
votes
2 answers

CPAN fails to install DateTime module

I tried to install the Perl DateTime module by running "cpan" and typing "install DateTime" at the prompt. After a lot of processing and printing I got this message: Compilation failed in require at (eval 907) line 3. # Looks like your test died…
titaniumdecoy
  • 231
  • 2
  • 4
  • 9
6
votes
3 answers

Is it good practice to just copy Perl modules via RPM?

A few applications on our RHEL6 servers depend on a few Perl modules being present. I would like to add these Perl modules as part of the Kickstart process when turning up new hosts. As opposed to kicking off CPAN, which is slow, I decided to just…
6
votes
1 answer

NRPE and Perl - cannot include ANYTHING or it breaks

I've been banging my head off NRPE and Perl for weeks now. I decided to start from absolute first principles, and create a dummy nagios plugin that does nothing but always returns OK. I called it check_true.pl, installed it on the remote server and…
Bart B
  • 3,457
  • 6
  • 31
  • 42
6
votes
5 answers

Removing perl module installed with cpanm

I am Perl beginner. I wanted to use Log::Log4perl module as I am familiar how it works in Java. I used cpanm script to download module, but I ran it without "sudo". Then it installed this module to my dir /home/amer/perl5. Afterwards, I installed it…
azec-pdx
  • 205
  • 2
  • 5
  • 9
6
votes
1 answer

perl equivalent of sh -e

In /bin/sh and /bin/bash (and I guess a lot of other shells), starting scripts with #!/bin/sh -e (or executing set -e in someplace in the script) would cause the script to abort when any command line inside the script exits with a status code…
Carlos Campderrós
  • 773
  • 2
  • 6
  • 17
6
votes
1 answer

LDAP passwords encryption (userPassword attribute)

I'm trying to import passwords from an LDAP to a MySQL database. When I look at the userPassword attribute for the known password test I get this: userPassword:: e01ENX1DWTlyelVZaDAzUEszazZESmllMDlnPT0= The password at this stage is base64 encoded,…
Max
  • 3,523
  • 16
  • 53
  • 71
6
votes
3 answers

Perl 5.10 on CentOS 5?

I would like to run some perl-scripts on my server that require perl 5.10. Perl 5.10 seems to be released many years ago and is still not available for CentOS5. In #rhel I was recommended to install RHEL6, but I use CentOS. In #centos I was…
chronoz
  • 61
  • 1
  • 2
6
votes
3 answers

Differences between linux and Solaris /usr/bin/env

I've a simple script: #!/usr/bin/env perl -w print "Hello World\n" Make this executable, run on Linux, and I get: /usr/bin/env: perl -w: No such file or directory (without the -w, this works OK) Running the same script on a Solaris 8 machine…
Tim T.
  • 63
  • 3
6
votes
3 answers

bad interpreter: Text file busy

For ages I've gotten used to editing Perl CGI scripts in "vi" and simultaneously having a browser open to test them. Lately, I've been getting "500" server errors when I do that, and when I run the script from the shell, I get "bad interpreter:…
JoelFan
  • 2,285
  • 5
  • 26
  • 30
6
votes
4 answers

IIS 7.5 on Windows Server 2008 R2 refusing to create PASSIVE MODE FTP connections

I'm attempting to get an FTP client written in perl to transfer files from an IIS 7.5 FTP server using passive mode. I've configured the FTP server as per instructions and have also configured Windows Firewall to allow this type of traffic. I have…
Campbell
  • 163
  • 1
  • 1
  • 7
6
votes
7 answers

What is the simplest, open-source webmail frontend available?

I am working on a project to create a few extremely stripped down interfaces for common Web/Internet tasks in order to make computers accessible to my visually impaired grandmother. Currently she uses Mac OS X Mail.app, but I had the idea that I…
josePhoenix
  • 183
  • 2
  • 8
5
votes
1 answer

Nginx & fcgiwrap, logging perl errors to error log

This is similar to this question, which got no responses: How to debug CGI over fcgiwrap/nginx How do I get perl errors to be automatically placed in the nginx error log? Right now, when there is any perl error, the following message goes in the…
Bintz
  • 395
  • 1
  • 2
  • 10
5
votes
2 answers

How do I build and configure a local CPAN module repo?

I'm a sys admin administering three air gapped (zero internet access) supercomputers. On one of the supercomputers we need to run Bugzilla. I already built my own local yum repository, but now I need to get Bugzilla up and running, which requires…
Lynn
  • 299
  • 6
  • 16
1
2
3
39 40