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.

Can't locate DBI.pm

I'm trying to launch this script: #!/usr/bin/perl use DBI; my $dbh = DBI->connect( 'dbi:Oracle:host=lonlin2;…

perl perl-module
How can I store Perl's system function output to a variable?

I have a problem with the system function. I want to store the system functions output to a variable. For …

perl system
In Perl, is there a built in way to compare two arrays for equality?

I have two arrays of strings that I would like to compare for equality: my @array1 = ("part1", "part2", "part3", "part4"); …

arrays perl compare match
How can I troubleshoot my Perl CGI script?

I have a Perl script that isn't working and I don't know how to start narrowing down the problem. What …

perl cgi
Is there a Perl shortcut to count the number of matches in a string?

Suppose I have: my $string = "one.two.three.four"; How should I play with context to get the number of …

arrays regex perl perl4
Hidden features of Perl?

What are some really useful but esoteric language features in Perl that you've actually been able to employ to do …

perl hidden-features
How can I find the version of an installed Perl module?

How do you find the version of an installed Perl module? This is in an answer down at the bottom, …

perl module version cpan
How can I make a JSON POST request with LWP?

If you try to login at https://orbit.theplanet.com/Login.aspx?url=/Default.aspx (use any username/password combination), …

perl json http-post lwp
How do I know how many rows a Perl DBI query returns?

I'm trying to basically do a search through the database with Perl to tell if there is an item with …

mysql perl dbi
Perl - while (<>) file handling

A simple program with while( <> ) handles files given as arguments (./program 1.file 2.file 3.file) and standard input of …

perl while-loop cycle filehandle