I'm doing some quick code generation (the output is Java), and I found myself writing the below routine. I like it because of the names I picked for the variables. Not exactly self-documenting (although it is when you think about it), but this is throwaway. You can probably tell what the code is doing and why I named the variables as I did, and you might be entertained.
sub uc_prop
{
my($prop) = @_;
my $p = substr($prop, 0, 1);
my $P = uc($p);
my $rop = substr($prop, 1);
return "$P$rop";
}
Strawberry Perl 5.12.0 was almost completely installed when suddenly it flashed some message I didn't see into the install wizard and the progress bars started moving backward! I have never seen anything like it. I realized the progress bar caption had been changed to simply "Rolling Back Action" and watched as at least three anonymous "actions" were rolled back, progress bar by progress bar. Then the install wizard simply told me "Strawberry Perl Setup Wizard ended prematurely Strawberry Perl Setup Wizard ended prematurely because of an error. Your system has not been modified. To install this program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard."
I wish it would tell me what the error was so I might have some hope of correcting it.
You mean someone will provide RT for me to use for free on the web? And they've built an awesome AJAX-y frontend for it? And they allow me to tag tasks and they encourage me to keep my work todo list and as many personal todo lists as I want in here? And they give me awesome search utilities for figuring this out and keeping it organized?
It's almost like a dream come true.
If I wanted to write a Strawberry program to run as a daemon and periodically pop up alerts on my machine, and I had no Windows Perl GUI programming experience other than an abortive look at WxPerl years before anybody ever thought of Strawberry, what module would I be looking for?
Stack Overflow is made significantly less useful when ignorant people move Perl programming questions to serverfault.com because the questions are about "servers, networks or the administration of many machines.".
This kind of ridiculous micromanaging by people who are awarded points for being anti-helpful is what destroyed Wikipedia as a place I wanted to participate.
The question is how to test a class that installs system services: http://stackoverflow.com/questions/2790072/unit-testing-installation-of-service
Anyone got any good songs about working on a ball of mud?
I've been living on UTC time since just before the end of Daylight Saving Time, 2005. Today I have reset my workstation to Central time. It's like looking at the world with fresh eyes.
My settings on websites will follow at some point.
Larry's son, Lewis, is writing a 2D game engine in Perl 6 using Rakudo (http://www.wall.org/~lewis/).
Larry's wife, Gloria, took the Revised Common Lectionary and expanded it to make a complete Bible reading program which covers the entire Bible in three years (http://www.wall.org/~gloria/lect/). And I wonder if maybe I'm not the only person in history who's ever written a program in Perl to divide up the Bible for reading, after all...