How To Fix CPAN Error Undefined subroutine &IO::Uncompress::Base::readonly

Author: , December 26th, 2013

CPAN Error: Undefined subroutine &IO::Uncompress::Base::readonly called at /usr/lib/perl5/site_perl/5.8.8/IO/Uncompress/Base.pm Looks like CentOS update installs an older version of the Scalar::Util so that Perl could not load the module. Download the Scalar::Util module and manually install it:

To test: perl -MCPAN -e ‘shell’ For more information, visit the CPAN Util.pm page. Original Post: http://www.perlmonks.org/?displaytype=print;node_id=965635;replies=1

How to Patch CGI::Application::Plugin::ConfigAuto to Run Perl in Taint Mode

Author: , April 13th, 2012

I had to patch the distribution by adding the following variable into the code: $Config::Auto::Untaint = 1; Here is the fix on AWS Linux: vim /usr/local/share/perl5/CGI/Application/Plugin/ConfigAuto.pm 141 sub cfg { 142 my $self = shift; 143 144 if (!$self->{__CFG}) { 145 require Config::Auto; 146 $Config::Auto::Untaint = 1; (ADD THIS NEW LINE HERE)

How To Determine Your Perl Module Version

Author: , April 12th, 2012

For example, to see the version for DBD::mysql, do this: perl -MDBD::mysql -we ‘print $DBD::mysql::VERSION;’

How To Cleanup Hacked WordPress PHP Code Using A Perl Script

Author: , March 21st, 2012

Perl to the Rescue! This perl script cleans just one type of infection as an example. Vary the script to search for and clean other combinations and patterns. Also, the script is deliberately written long-hand and verbose, and could be significantly more compact and efficient. It was done this way for ease of use and […]

How To Install ec2-consistent-snapshot On AWS/CentOS

Author: , December 30th, 2011

http://alestic.com/2009/09/ec2-consistent-snapshot http://www.thatsgeeky.com/2011/05/ec2-consistent-snapshot-on-amazons-linux-ami/ http://www.thatsgeeky.com/2011/06/rotating-ebs-snapshots-ec2-prune-snapshots/

How To Create a Web Request Sniffer Using tcpdump and Perl

Author: , November 3rd, 2011

YMMV…

Additional Reading http://chaosreader.sourceforge.net/ http://www.id-snippet.com/3008/dump-http-packet-using-tcpdump-and-perl/ http://stein.cshl.org/~lstein/talks/WWW6/sniffer/ http://www.perlmonks.org/index.pl?node_id=254612

How To Determine If A String Is An Integer In Perl

Author: , October 28th, 2011

This solution is hyper-simplistic, and does not deal with decimals or real numbers (those with either a – or a + in front of them)…

How To Configure AWS SES Perl Scripts

Author: , October 27th, 2011

Your mileage may vary widely…

CentOS

Ubuntu

For all OS

How To Fix git Install Errors On CentOS

Author: , October 24th, 2011

The below worked for me…

Here are the errors I was getting:

How To Format The Number Of Decimal Places In Perl

Author: , October 10th, 2011

Outputs: 123.450