Archive | Perl RSS feed for this section

Online fax service with SSL API

Problem You need to create an online application that is capable of sending a FAX securely (PCI, HIPAA or other compliance). Solution After trying trustfax and eFax, neither of which has a secure API, Ralph found that Metro Fax has a SSL API for developers and the cost is reasonable. The following SDK as well [...]


Leave a comment Continue Reading →

Using the PayPal express checkout API in Perl

Perl API for PayPal There are a number of apps written in Perl that connect to classic CC transaction gateways. Meanwhile, PayPal has become so inexpensive, that a number of merchants can save significant amounts by switching to PayPal. The folks at PayPal have published a nice framework that allows Perl applications to use PayPal [...]


Leave a comment Continue Reading →

How to change a link everywhere throughout one or multiple websites?

To do a recursive search and replace in a file system tree, the most effective way is to work directly on the file system. Using a tool like DreamWeaver is slow and cumbersome. Unix offers perl and find, which combined allow to do a search and replace recursively very easily. This implmentation is in perl, [...]


Leave a comment Continue Reading →

Connection pooling with mod_perl

I found this info in the PostgreSQL archives. Here are  2 methods: Best method from Dan Lyke: Apache::DBI will pool across Perl programs, and you don’t have to change anything in your scripts. Next best method from Gilles DAROLD: in your perl script use the following code use vars qw($dbh); $dbh ||= DBI::connect($datasrc, $dbuser, $dbpwd); [...]


Leave a comment Continue Reading →

Making Perl Module Fails on RedHat

If the build fials because of a makefile error, it is most likely due to an encoding error during the generation of the makefile. That type of error is described in the RedHat Bugzilla report #87682 and the solution given is to change LANG from en_US.UTF8 to en_US.


Leave a comment Continue Reading →

How to install Perl modules on a Unix / Linux server

From the command line, as the root user, run: # perl -MCPAN -e shell And then at the cpan command line run: cpan> install Module::Name Alternatively, using sudo on one line, as any user you can directly intall a module by running: sudo perl -MCPAN -e ‘install Module::Name’


Leave a comment Continue Reading →

Check Variable Type is Integer in Perl

If you need to make sure that data incoming from a data source is integer, you can use: if ( $variable =~ m/^[d]*$/ ) { print “integern”; } More info is on SitePoint.


Leave a comment Continue Reading →

Perl Switching to Git

Perl announced a couple of weeks ago that it is switching from Perforce SCM to Git.  Is it time to review what SCM to use for managing distributed projects?


Leave a comment Continue Reading →

How do I install Perl modles on a dedicated server?

From the command line, as the root user, run:   # perl -MCPAN -e shell And then at the cpan command line run:   cpan> install Module::Name


Leave a comment Continue Reading →