Installing perlbrew on Centos/Rhel/Fedora

Published on Author gryzliLeave a comment
Installing perlbrew

Why you may need perlbrew ? Perlbrew gives you the ability to maintain multiple perl versions, each having different set of install perl modules. The concept is not any new, we have already seen such things in Python (virtualenv) or Ruby (rvm). Basically you get the following benefits (as state in the perlbrew site also):… Continue reading Installing perlbrew on Centos/Rhel/Fedora

Perl – How To Change Output Based On Execution Context (cron or cli)

Published on Author gryzliLeave a comment

How to log messages based on your run environment ? I find myself often wanting to change my output based on my running environment. Most of the times, while your script is running like cron job, you don’t want your informative messages to go to STDOUT. One of the reasons for that, is that by… Continue reading Perl – How To Change Output Based On Execution Context (cron or cli)

Perl – Web hit function using LWP::UserAgent

Published on Author gryzliLeave a comment

Often I need to issue web hit from a perl code, and re-inventing the wheel with LWP::UserAgent or WWW::Curl::Easy sometimes is too overdose for me. ┬áThat’s why I decided to write some semi-universal function called “web_hit()” which could be easily used for issuing web hits.   Important notices: The function always generates POST requests The… Continue reading Perl – Web hit function using LWP::UserAgent