A Nasty Bug
In the evening I fixed a nasty bug in the Perl version of tumblelog
introduced the 28th of March, 2025. I had replaced a todo
counter with taking an array slice, wrongly assuming that if in Perl
one makes the slice larger than the actual number of elements the
whole array was used. Instead new elements, set to undef, are added.
This resulted in the Perl version failing with a lot of warnings on a
blog with just a few entries. This didn't occur while running the Perl
version for Plurrrr because this blog has quite some entries.
The fix was an easy one: calculated the minimum of the size of the array and the desired size and use it, minus one, as an upper bound in the slice.
After a test with the tumblelog included example Markdown file passed
successfully, I pushed the new version to GitHub.