On Win32 systems, unsetting $ENV{PATH} can result in bizzare results:
%ENV = ();
capture($command, @args);
Use of uninitialized value in split at
C:/Perl/site/lib/IPC/System/Simple.pm line 417.
"mkdir" failed to start: "The system could not find the environment
option that was entered" at C:\example.pl line 93
Both errors are from the _spawn_or_die subroutine. The $^E appears to
be completely bogus in this case.
Many thanks to Leif Eriksen for reporting this bug.