Attempt to run the following trivial program:
#!perl
use strict;
use warnings;
use DateTime;
use Win32::GUI ();
Note that it fails with an error that (Win32::GUI::)DateTime cannot be loaded as the version does not match.. because somehow the bootstrap_subpackage() routine in Win32::GUI is getting confused.
I attach a patch that seems to solve this problem; It passes Win32::GUI tests, and works on my little app, but I can't guarantee it doesn't break some strange magic elsewhere.
Patch to adjust bootstrapping behaviour.
See also http://rt.cpan.org/Public/Bug/Display.html?id=37665
fixed in 1.08