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.

How do I get a list of installed CPAN modules?

Aside from trying perldoc <module name> individually for any CPAN module that takes my fancy or going through …

perl cpan
What's the difference between Perl's backticks, system, and exec?

Can someone please help me? In Perl, what is the difference between: exec "command"; and system("command"); and print `command`; …

perl
How to extract string following a pattern with grep, regex or perl

I have a file that looks something like this: <table name="content_analyzer" primary-key="id"> <type="global" /&…

regex perl sed html-parsing text-extraction
Show a PDF files in users browser via PHP/Perl

I want to show my users PDF files. The reason why I use cgi to show the pdf is I …

php perl pdf
How do I remove duplicate items from an array in Perl?

I have an array in Perl: my @my_array = ("one","two","three","two","three"); How do I remove the duplicates …

perl arrays unique duplicates
no pg_hba.conf entry for host

I get following error when I try to connect using DBI DBI connect('database=chaosLRdb;host=192.168.0.1;port=5433','postgres',...) failed: …

perl postgresql database-permissions
What is the proper way to check if a string is empty in Perl?

I've just been using this code to check if a string is empty: if ($str == "") { // ... } And also the same with …

perl string comparison
How to match any non white space character except a particular one?

In Perl \S matches any non-whitespace character. How can I match any non-whitespace character except a backslash \?

regex perl
How do I perform a Perl substitution on a string while keeping the original?

In Perl, what is a good way to perform a replacement on a string using a regular expression and store …

regex perl replace
Difference between \w and \b regular expression meta characters

Can anyone explain the difference between \b and \w regular expression metacharacters? It is my understanding that both these metacharacters …

javascript java php regex perl