Every Wednesday I write a post here. But, due to national mourning, nothing about perl today.
As you know, near the airport of Smolensk Tupolev 154-M aircraft with President Lech Kaczynski crashed. President of the Polish National Bank also died, the head of the IPN (National Memory Institute), the Sejms and Senats (both chambers of parliament) vice heads – (Putra, Bochenek, Szmajdzinski), the former president in exile Kaczorowski, presidential ministers, Chief Gen. Gągor, the ombudsman Janusz Kochanowski, wife of the President, members of Parliament (Gosiewski, Wasserman, Jaruga-Nowacka, Szymanek-Deresz and others), bishop Tadeusz Płoski and others. Probably when making the second approach to landing plane collided with trees and crashed.
A few rather obvious parallels arise:
- that in the Katyn Polish intelligentsia perished and now again, many representatives of the Polish intelligentsia died there.
- Second, the General Sikorski and his unexplained aircraft accident
- Third – that 5 years ago, in the day before the Divine Mercy Sunday, 7 days after Eastern died Pope John Paul II. This year, exactly the same vigil before that Sunday, the President and others died.
Read more of you want:
http://en.wikipedia.org/wiki/Katyn_massacre
http://en.wikipedia.org/wiki/W%C5%82adys%C5%82aw_Sikorski#Death
http://en.wikipedia.org/wiki/Divine_Mercy_Sunday
There ads on this blog. Really. You probably do not see it, if you use adblock for firefox or similar solution.
Turn AdBlock off and look at right column. First, there are ads about perl – form Gabor – I wrote about it here. Then a few adsense (from Google). They should match the content of this blog. And then is a link to one particular book I like very much.
And guess what? No one clicks the ads from Google. I see that in my stats. Even though those ads are matched to site content – as you can see. I doubt if anyone clicks the ads from Gabor either (by analogy – beside, I guess, most geeks use adblock and similar solutions – so they do not even see it – and those ads are intended for THEM). If you have clicked and ad here – either from Gabors perl ad server, or google – raise your hand (add a comment).
Did someone forgot about perl ironman competition and neglects it?
See http://jquelin.blogspot.com/2010/02/ironman-challenge-status.html and http://www.lowlevelmanager.com/2010/01/perl-iron-man-challenge-is-cron-still.html
wtf?
This was first time I encountered the strange foreach localisation.
One day I was using global var in script (lame, I know). I wanted to use it in foreach. And its value magically disappeared when called other subroutine. This was strange.
This was a script to make reports for customers. The code looked like this (many parts taken out for brevity and to protect the innocent
) :
I did my talk about WTF in Perl at YAPC::EU 2009 at Monday, August 3rd. It was a bit stresfull experience for me. Especially that my laptop did not want to show presentation on the projector. I turned out that I do not know my own laptop. Right, I use it rarely. Hopefully presentation was not bad, I received some positive feedback. People were clapping too. Nice
One person asked me for slides. So here they are:
Feedback about my talk is appreciated, use comment field below
Imagine you have a loop – and in that loop you call a function (sub) – your, or from some module. And imagine that someone by mistake left there “last” statement. What would it do? it will terminate your loop.
for … {
something…;
function();
something… that would not be executed…
};
sub function {
something something…
last; # by mistake, maybe it should be a “return”?
}
For some people it is a WTF, for some it is very logical way , that it should work like.
What do you think about it?
read more…

