Top "Perl" questions

Perl is a procedural, high-level, general-purpose, dynamic programming language, known for its native support of regular expressions and string parsing capabilities.

Why does my Perl script exit with 137?

Is there a way to eliminate a warning (exit code 137) in perl? I am running a Perl script on linux …

perl exit-code
Install perl-JSON on centos

When I'm trying to run a perl script (on my centos 6 machine) I get this message: Can't locate JSON.pm …

json perl centos centos6
How to run CGI scripts on Nginx

I have problem setting up CGI scripts to be run on Nginx, so far I've found http://wiki.nginx.org/…

perl nginx cgi centos
Which version of Perl should I use on Windows?

The win32.perl.org web site provides references to several Perl distributions for MS Windows. For a long time I …

windows perl debugging strawberry-perl
How do I use Perl's localtime with print to get the timestamp?

I have used the following statements to get the current time. print "$query executed successfully at ",localtime; print "$query executed …

perl built-in
What is the correct way to break a line of Perl code into two?

$ cat temp.pl use strict; use warnings; print "1\n"; print "hello, world\n"; print "2\n"; print "hello, world\n"; print "3\…

perl code-formatting
How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?

I have a file like the following and I would like to print the lines between two given patterns PAT1 …

shell perl awk sed pattern-matching
Usage of ‘if’ versus ‘unless’ for Perl conditionals

What are some guidelines for the best use of if versus unless in Perl code? Are there strong reasons to …

perl if-statement readability
Perl array vs list

I have two data structures in Perl: An array: my @array2 = ( "1", "2", "3"); for $elem (@array2) { print $elem."\n"; } Giving me the …

arrays perl perl-data-structures
IIS 405 HTTP verb used to access this page is not allowed email

First off, I'm familiar with IIS however do not have much practical experience, hence why I have come here. I …

html perl email iis formmail