Unbreaking Params::Util on Red Hat Enterprise Linux 4

Alias on 2007-08-18T03:35:05

Continuing my war on the zany RHEL 4 platform, I've skipped one of the more evil tests in Params::Util, which goes something like my $evil = bless { foo => 'bar' }, "\0"; is( _INVOCANT($evil), 1, 'Object in null class is an invocant' );

The problem seems to stem from length(blessed($evil)), which would seem to itself derive from somewhere deeper.

Regardless, as the failure of this test represents such an absurdly rare/evil corner case, it's far better just to skip the test for regular users, and only run the test when under the AUTOMATED_TESTING flag.

This just leaves the failure of Task::Weaken on RHEL 4, which I think I have a way to address and force the installation of an upgraded version Scalar::Util with weaken support in it.

And finally, in a small teaser for YAPC::AU 2007 in Brisane in November (assuming the targeted project doesn't have its act together by then) I think I may have a sufficiently interesting new Vertical Metre of Beer challenge, which I'll be presenting during my "Optimising for Wetware" talk. :)

(I'll also post the details here that night)