Years ago I wrote about a concise fork idiom. It turns out that it’s possible to do better than everything I discussed in that entry as well as the proposals in the comments.| blogs.perl.org
I wrote very elliptically about this warning and received some helpful comments with the standard advice about how to proceed when encountering it. Except unfortunately that advice will be of no use when you encounter this warning.| blogs.perl.org
(We know, of course, that “class data” is OOPese for “global variable”.)| blogs.perl.org
There is a “use locale” somewhere in the code you are running.| blogs.perl.org
Well, not actually wrong, just slow. But the exaggeration makes a punchier headline, you’ll admit.| blogs.perl.org
Graydon Hoare:| blogs.perl.org
Quoth the fine manual for Template Toolkit:| blogs.perl.org
This loop (assuming you have an /etc/passwd and may read it) runs forever:| blogs.perl.org
That’s a reasonable suggestion, but also feels like it’s missing the point in a way.| blogs.perl.org
Tom Wyant:| blogs.perl.org
Perl has two operators, cmp and <=>, which are basically never seen outside of sort blocks.| blogs.perl.org
Strictly speaking not news exactly, given that it dates from early 2018, but it was news to me, and since I haven’t seen it make the rounds I still find it worth disseminating. From the MySQL 8.0.11 release notes:| blogs.perl.org
Olaf Alders| blogs.perl.org
(It is, of course, obvious, and it is, of course, irrelevant in most contexts, especially as it is, of course, not a huge difference. Perl structurally tends to make it less likely to make this mistake in an accidentally quadratic way compared to how Java tends to be written, anyway. And anyhow, instead of micro-optimising Perl code this way, we all rewrite it – of course – in C… right?)| blogs.perl.org
And now we’re trapped. There’s only one friend variable, constantly changing as we go through the loop, with the most likely result one of our friends will get half a dozen messages, while the other five receive nothing, to the annoyance of both groups.| blogs.perl.org