use Win32::API; Win32::API::->Import("kernel32","HANDLE GetCurrentProcess()"); #### { no strict 'refs'; *import = \&Import; }