Randomness at its best

Journey from a no one to a someone

Friday, March 2, 2007

Perl is a pearl

Attended the Perl Training given by George Ball... yes again! Perl is such a amazing language, known for its "expressional powerfulness" and very easy for a beginner to learn. Sometimes a task for which you will write 100 lines of code or a performance killing loop, can be written in perl in 2 lines. Perl cookbook, Camel book prove to be really good for reference if you have some scripting to do.

When you have really big number crunchings to do, perl sure is the thing to go for. Regular expressions make it so powerful. On second thoughts though, something like java can pretty much do everything that perl can. All languages aren't created equally. One's knowledge of a particular programming language will help him determine which is the best language to carry out a certain task and which one will fall short for them. One can extend this thought far more than programming language or even beyond computer matters!

Coming back to perl, if you want, you can write most mysterious program so much so that no one will be able to make head and tail out of it. There have been people trying to write most abstruse perl code (I believe some of them have been hired by our firm and I am having hard time comprehending what they are trying to achieve through a piece of code) Having said that, I am must admit, it is very much English language like, syntax wise. Writing a clean, humanly readable and understandable perl program should not be a big challenge as people actually have perl haiku contests... lol. I initially thought its just a joke. But there are so many of them available online!

Here is one that I found:
y? use Lisp? or C? ;
use less keystrokes, B::Concise;
bless Wall for our @perl
I am not sure whats its output is though.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home