The following Perl code ..
if ($^O eq \"MSWin32\") { use Win32;
In general, use Module or use Module LIST are evaluated at compile time no matter where they appear in the code. The runtime equivalent is
use Module
use Module LIST
require Module; Module->import(LIST)