Resource on debugging, profiling and benchmarking in Perl

I am listing some of the online resource which really helped me to understand the debugging and profiling in Perl.

Profiling Perl by Simon Cozens

Dr. Dobbs Journel by brian d foy

Wasting time thinking about wasted time by brian d foy

Randal L. Schwartz column on Unix Review

Benchmarking your code by turnstep

Debugging and Profiling mod_perl Applications by Frank Wiles 

also do not forget to check chapter 4, 5, 6 of Mastering Perl Book and documentation on CPAN and perldoc.

Any Addition to this list is welcome.

Enjoy Perl.

 

Added:

Devel::Nytprof 

 Slides of Tim Bunce talk on Devel::NYTProf YAPC::EU August 2010

 

Perl Data Language (PDL) Release News

PDL 2.4.10 is released. Another great work from Chris Marshall and PDL Development Team. See this link for official announcement.

You can also checkout the first draft of the PDL book. For existing MATLAB users there is a very good guide which can help in migrating from MATLAB to PDL.

 

Enjoy the new PDL release and unleash the power of Perl for solving mathematical problems.

Good Luck!

Rakudo Star Jan 2012 Released

Rakudo Perl, a Perl 6 compiler for the Parrot virtual machine is released .
The tarball for the January 2012 release is available from http://github.com/rakudo/star/downloads.

See this link for official announcement.

Map Reduce using Perl

The Perls of 2011

Like year 2010, Breno G. de Oliveira [garu] has again written a wonderful blog “The Perls of 2011”. See the link for full read.

I like to congratulate garu for wonderful job. Looking forward for such analysis in coming years.

Happy New Year to all there in Perl community. Long Live Perl.

Enjoy!

List.js: Cross browser native JavaScript

List.js A 7 KB cross-browser native JavaScript that makes your plain HTML lists super flexible, searchable, sortable and filterable.

This library is still in beta but worth to check.

For more you can check the README of the project on Github.

Good luck.

Apache Lucy search engine

Apache Lucy is full-text search engine library written in C and targeted at dynamic languages. The good news is that, the inaugural release provides Perl bindings. For more information, you can visit the Apache Lucy website Let’s hope for some good result. I still have to try but you can download from here.

Message: Invalid argument: IE 8 Issue

In my Perl based server application, I want to execute a script in a new pop up window. I was using a syntax like:
[code lang=”js”]
var my_window = window.open(‘open_window.pl, ‘my window’, ‘width=800,height=600,resizable,scrollbars’);
[/code]
When I run the program in FF and Chrome it all works fine. I can open my pop-up window with above parameters and can see my desired result but the issue starts when I do the same test with IE 8. In spite of pop-up blocker off, the pop-up window was not launching, it was giving me a error message like:
[code lang=”js”]
Message: Invalid argument.
Line: 100 Char: 5
Code: 0
[/code]
After debugging I found a solution which is some way very ridiculous. Issue was because of the reason that Microsoft does support the name property in window.open() with spaces [http://msdn.microsoft.com/en-us/library/ms536651%28v=vs.85%29.aspx] this means that if I make my window.open like [See GREEN string
[code lang=”js”]
var my_window = window.open(‘open_window.pl, <strong><span style="color:#00ff00;">’my_window’, ‘width=800,height=600,resizable,scrollbars’);
[/code]
then it should works.

After doing this change it works with me for all the browsers.

I don’t know why IE always through such type of errors,  even if you launch the in-built Developer tool from IE interface then also you will get the same error message  “Invalid arguments” no further clue/pointer to solve the issue. MS really has to improve the error handling messages to user.

So guys, be careful while developing pop-up window for all browsers specially for IE.

Thanks

Searching and voting CPAN modules in google way

MetaCPAN —  Really amazing stuff .. you can connect with github, twitter accounts and can vote on Perl modules!

How to use Devel::Cover

In Perl Node Interface blog I found a interesting entry on the methods to use Devel::Cover. If you want to check more on Perl Node Interface (PNI) see the detailed installation instructions on this link.

Enjoy the new Perl module.