in reply to use strict and Win32::API

The other answers are better in this case.

You can also turn strict off in blocks of code using  no strict; too. Just food for thought.