Update: This article is updated thanks to Colin Keith his excellent comment. I was extremely inspired by it Maintaining a large number of servers cannot be done without proper programming skills. Each good system administrator must therefor make sure he knows how to automate his daily works. Although many many programming languages exist, most persons…
Tag: CPAN
A simple TCP server written in Perl
The below example is a very simple TCP server script written in Perl, which uses the AnyEvent module.It will create a separate process for each connections and has the ability to return data to the parent process.The below example allows 15 child processes to be created, which results in 15 simultaneous client connections. The script…
Generate thumbnails with Perl and Image Magick
Putting photos on a website has always been a pain. There were always a few steps you had to do, before they could be seen on your webpage. Of course, nowadays there are services like Flickr, Picassa, Panoramio, Facebook … but you still have to go through quite some steps before you pictures are online….
Updating custom CPAN modules on Debian
On Debian based distributions, a handy tool called dh-make-perl can be installed to ease the installation of CPAN Perl modules on the system. This tool will create a Debian package of the CPAN module, and can also install this package automatically. The advantage of this procedure is that when the CPAN module is picked by…