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

Perl XS included from a "use lib" directory can't be found by ISAPI

I have a Perl web application that runs on both Apache and IIS6 on Windows Server 2003. On Apache this script works just fine. In IIS using ISAPI, I am getting the following error message: Software error: Can't load …
Jason Lamoreux
  • 109
  • 1
  • 10
0
votes
0 answers

Jenkins scripted client access to node/block logs (not full log). curl works, but suggested perl code does not

I want to get the log for a Jenkins node (enclosingBlock) for one of my jobs. I know I can get the full log: (replacing jenkinsserver and %JOB% as appropriate) http://jenkinsserver/job/%JOB/lastBuild/consoleText And I can sometimes get a node log…
0
votes
1 answer

How to consistently get Apache version in Perl for comparison against configuration requirement list

How can I extract the Apache version number? I would like to then use this number to compare it against a value in a configuration requirement file for a minimum Apache version as part of an automated installation procedure. I use…
therobyouknow
  • 471
  • 4
  • 8
  • 18
0
votes
0 answers

Empty response of nginx with ngx_http_perl_module

I have to run a very simplistic piece of perl code in response to HTTP request. The nginx config is: http { perl_modules perl/lib; perl_require errors.pm; server { listen 80; server_name _; root …
sotona
  • 101
  • 3
0
votes
1 answer

Best way to secure world-writable .shtml files written to by Perl?

The Perl script I have a Perl script running on an old Debian 6 server (until I move to a new server) that opens an editable pane in an .shtml file, accepts only Creole markup input from a single user, and writes to two user-editable .shtml files…
Dave Everitt
  • 201
  • 1
  • 4
  • 11
0
votes
1 answer

How to separate variables using awk and append it to Text file using ansible

What I got as extra variable to ansible playbook is "CHOW_app/timmy_app1/johnn_app3/harper_app4/mona_app5". This is passed as single variable to the playbook. I have to separate it and save it in a text file in this format. REVOKE CHOW app REVOKE…
saffron
  • 143
  • 1
  • 3
  • 12
0
votes
1 answer

Webmin shows plain Perl script when try to open login page

when I try to open webmin login page "https://192.168.1.13:10000" it shows plain Perl script like below, what is problem? I'm running Ubuntu 18.04 and latest version of webmin. #!/usr/bin/perl # # Authentic Theme…
marcelo12
  • 1
  • 2
0
votes
1 answer

Apache: No custom headers in environment variables

I've just installed a new webserver (Debian Buster, Apache, Dovecot, ISPConfig) to replace an old webserver. One of my websites uses custom request headers (through Javascript) to pass information to a perl script on the server: XMLHttp.open("POST",…
Zippy1970
  • 247
  • 1
  • 4
  • 12
0
votes
0 answers

Solved: Yum install of perl engages in circular logic

Edit: I'm an idiot and forgot to use createrepo and update the repodata, so the dependencies were not found on the repo. Mystery solved. Bit of an odd one. I'm attempting to install perl on a Redhat box, and one would think it'd be as simple as…
Ang D
  • 11
  • 3
0
votes
1 answer

Using Net::SMTP::TLS with Amazon's Simple Email Service

I have been using Net::SMTP::TLS for my web application to send password reset emails using Google email for years. my $smtp = Net::SMTP::TLS->new(email-smtp.us-east-1.amazonaws.com, Hello => , …
BioRod
  • 303
  • 4
  • 13
-1
votes
1 answer

Killing a Perl process in Linux

I started a perl process that runs a script and I want to end it, but not the rest of perl scripts. How do I target it and not the rest?
prgrm
  • 151
  • 1
  • 2
  • 6
-1
votes
1 answer

How can i get rid of “apache2 : Depends: perl but it is not going to be installed” in ubuntu 14.04 desktop?

This is the error message i have at console when running $sudo apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you…
-1
votes
1 answer

sed + replace value default in grub.conf

I want to change the default value on all machines to default=0 default value could be any integer number how to set in the sed syntax that default could be any number my example ( not working ) for server_ip in $all_servers do ssh $server_ip…
dandan
  • 1,081
  • 4
  • 13
  • 21
-1
votes
1 answer

Uploading files in CentOS - permission denied

I am trying to upload files to a web server running Apache/2.4.6 on CentOS 7 using a simple Perl script. I get a permission denied message. My code: [user@machine cgi-bin]$ cat test.pl #!/usr/bin/perl use CGI qw(:standard); use CGI::Carp…
michagal
  • 11
  • 1
-1
votes
1 answer

How to use the awk,sed Modify the text?

As follows, some text 16G 16G 1.9G 40G 4G 4G 952M 60G 16G 16G 1.6G 40G 5G 780M 5G 80G I want to change all the unit from 'M' to 'G', like this 16G 16G 1.9G 40G 4G 4G 0.92G 60G 16G 16G …
jython.li
  • 84
  • 2
  • 10