Perl WTFs – last in function
Monday 27 July 2009 @ 10:17 pm

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?

Comments (0) - Posted in wtf,yapc by  



YAPC::EU 2009 in Lisboa (Lisbon, Lizbona)!
Monday 22 June 2009 @ 7:43 pm

The Perl conference YAPC::EU (Yet Another Perl Conference) is coming – in 42 🙂 days!

Tenth Edition of the european Yet Another Perl Conference will be held in Lisbon, Portugal, 3-5 August 2009.

The conference website is here: http://yapceurope2009.org/. There is also wiki and twitter

And I am going to be there http://yapceurope2009.org/ye2009/talk/1896 🙂

Comments (0) - Posted in yapc by  



« Newer Posts