Trancemission,
I don't think the %ENV is OS dependant, but am not entirely confident of this, does anyone else know? (it certainly works on UNIX).
For debugging purposes have you tried printing out the contents of %ENV (just after accepting connection):
foreach $key (keys %ENV) {
print...