News for hackers. Stuff that matters.
Re:Higher-Order Perl is available for free as a PDF by zby on Tuesday July 13, 2010 @01:05AM (#1510417)
It was really mind-boggling when reading it - but then I did not have much chance to apply the techniques in my work. I've read a lot of positive reviews of this book and how it changed the way people programm - but what was exactly the technique that you picked up from it?

I once copied the crawler using iterators ( http://hop.perl.plover.com/Examples/ALL/ItRobot10.pl ) when we needed a quick script to check our links - and it worked nice for about a 1000 entries and then it suddenly started to be really slow. I tried to find out where that slow down happens and it was after the return statement in traverse - it seems like this code triggers some garbage collector problem. I did not have time to analyze that further - but it happened both in 5.10.1 and 5.12.1.

I've also send a simple bug report to mjd (for the line 'my $html = get($url); - it redeclares $html and so the value becomes invisible from outside of the loop and in particular for the return statement), but I never got any answer from him.

Re:Higher-Order Perl is available for free as a PDF by mjd on Tuesday July 13, 2010 @08:57AM (#1511161)
I'm sorry that I didn't get your error report, or that you didn't get my reply to your error report. But I maintain an errata page, and that error has been on it since 2005-05-24. See http://hop.perl.plover.com/errata/errata-p-1.html#p196.