Issue #30 - 2012-02-20 - Programming Perl, 4th Edition eBook is available at half price

latest | archive | edited by Gabor Szabo
This edition was made possible by the supporters of our cause.
Don't miss the next issue!

Welcome to the new readers!

Last week, Jeff Bisbee invited the members of the Perl Mongers group on LinkedIN to sign up to this newsletter. This resulted in more than 100 new sign-ups. Those of you, who are not part of that group yet, let me recommend you to join it. One day it will help you finding a new job or finding employees.

This issue is also full of posts related to brian d foy. Lots of good things came together.

See the posts:

Gabor Szabo


Headlines

Programming Perl, 4th Edition eBook is available at half price

This is a heavy book. Even the PDF is 21 Mb and took a few minutes to download. I consider this to be the ultimate source of Perl. It is not a book to learn the basics from, but it is a must read for everyone who wants to be serious about Perl. I read the 3rd edition and I am looking forward to read this new edition. I'll probably buy the printed version as well, but till then I am going to read the PDF.

Learning Perl Student Book, 2nd Edition is out

This is a collection of 125 exercises covering every chapter of the Learning Perl book. It includes exercises for smart matching and database access. I think if you want to learn Perl you should pay the little price and do all the exercises. I bought it and I plan to learn from this how to create some interesting exercises for my students. As I think about this, I might even give them a copy of this. I just need to work this out with brian and O'Reilly.


Announcements

YAPC::EU::2012 Call for Papers

Finally the CFP is here. They will use a sliding acceptance of talks, a bit similar to what's happening at YAPC::NA already. So the earlier you propose the talk the higher your chances are. This changes the whole meaning of procrastination and the dead-line.


Articles

Install your own Perl with your own CPAN

by Gianluca Casati (FIBO)

Gianluca Casati has an environment where only some of the computers have direct Internet access. He describes the steps how to build perl and use mini-CPAN on the connected machine to build the environment that can later be moved to the other machines as well.

Use __SUB__ to get a reference to the current subroutine

What do you do if you create a subroutine during run-time and you would like to call it recursively? There are two solutions using CPAN modules but in perl 5.16 you'll be able to do it with parts of perl itself. I guess this is one of those things that you need very rarely but then it is very useful to have.

Improving Perl 5: Grant Report for Month 5

Frankly, the code in there is just too much for me, but the text is very readable and interesting. It shows how Nicholas Clark deals with cleaning up some deep bugs in perl and reveals a bit about the way the Perl 5 Porters work.


Discussion

The Perl Learning Environment

by brian d foy (BDFOY)

brian d foy is thinking on some new tools to teach Perl to beginners and he is asking your opinion. Having a Virtual-Box image of Linux already filled with all the necessary tools is a good idea, I have been doing that with my test automation classes. I hope, for people who prefer Windows he will pick DWIM Perl for Windows and Padre. They were built with the idea that they can be a smoother entry for people in the Windows world.


Fun

Got 20 minutes? WWW::xkcd is born!

by Sawyer X (XSAWYERX)

xkcd is one of the greatest geek comic. Ever. It now has a module on CPAN. Actually, as Sawyer writes 'I searched CPAN and saw only a few xkcd modules'. Let me emphasize that: He saw only a *few*, and then went on writing another one... I think that attitude has been analyzed already by xkcd. And for all the people who might misunderstand me: I applaud Sawyer and the creation of WWW::xkcd.

Your Perl-driven cyborgs can soon recognize objects

by Max Maischein (CORION)

Max Maischein (Corion) is trying to make sure we are going to be able to track objects as they move around in movies.


Code

Found this Perl script on a defaced web-server

Everyone has to start somewhere. Sure, putting your first perl script on CPAN wouldn't be a good idea but using it to attack a server... And that person somehow got on the server so maybe the Perl code isn't perfectly engineered (to say the least) but it worked :)

Hilight growls from irssi with Plack and ssh

by David Golden (DAGOLDEN)

Apparently David Golden has a similar setup to mine for IRC. Using an ssh connection to a remote server, where he runs irssi. The problem that we don't get pop-up notification when someone is talking to us. Or I'd say we did not get. Following the instructions of @dagolden one can set up a pop-up alert... Actually, in one of the comments he pointed to another solution by RGS that was even simpler to setup. So now I have notifications! Shall I be happy not? Shall I say goodbye to the little productivity I had earlier?


Slides

PerlTalks: Parallele::ForkManager (cases of usage)

There are a number of ways to run several tasks at the same time. Parallel::ForkManager provides a simple way to do that. Geistteufel (aka celogeek) created some very clear slides on how to use the module in simple cases and cases when you need database access in all the child processes. The 3D slides are also very nice.


Perl 6

Results from the Prisoner's Dilemma Challenge

There were a number of submissions which got a few interesting names such as 'Turn the Other Cheek', 'Inevitable Betrayal' and 'Me'. The length of the solutions also had great variation from 15 lines down to 3 lines of 'Me' written by Audrey Tang. 'Crazy' is an understatement.


Other

Resource on debugging, profiling and benchmarking in Perl

Pradeep Pant links to a couple of old, but still useful articles on speeding up your perl code. Look, he also has a banner of the Perl Weekly! Thanks for that!

'cuz multiple steps into one is cool :)

Dominic Humphries takes vim and git, glues them together with Perl so he can easily find out who to blame a piece of code on. But why blame? You should praise them!

Estimating like an Adult - What to Steal from Agile...

by Peter Sergeant (SARGIE)

This is the 2nd part of Peter Sergeant's article on trying to handle the developer-product manager relationship through better time estimates. He argues for using Story Points instead of time units and Velocity to balance the difference between developers. I personally don't have much use for this as I mostly write for myself but I think others could benefit from this approach. I certainly would like to read abut the experience of others.

The rise and fall of personal computing

According to this graph PCs might have reached their peak 'units shipped per year' but more telling is the relation between the number of PC+Mac vs Android+iPhone+iPad. The important for Perl programmers is, that Perl has no real presence on the handheld devices. Only in the back-end, serving those devices.


The self promotion section

Matching numbers using Perl regex

by Gabor Szabo (SZABGAB)

I took a regex related question I saw on PDX.pm and described how I'd build the regex step-by-step. The string isn't too complex: 'Usage:524944/1000000 messages' but I hope this approach can help people learn how they can go about building a regular expression.


Events

Perl Workshop in Israel

February 28, 2012, Ramat Gan, Israel

German Perl workshop

March 5-7, 2012, Erlangen, Germany

DC-Baltimore Perl workshop

April 14, 2012, Catonsville, MD, USA

Dutch Perl Workshop

April 14, 2012, The Hague, The Netherlands


You know, you could get the Perl Weekly right in your mailbox. Every Week.
Free of charge!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter RSS Feed of the Perl Weekly. Updated once a week