Incidentally IIRC AS Perl distro comes with a (perl - what else?) program that basically just changes the value of a bit in the header of a binary executable and makes it execute without the creation of a console window, which is precisely what is used to make wperl.exe out of perl.exe.