$function = Win32::API->new( 'mydll.dll', 'int sum_integers(int a, int b)', ); #### Method 2: with parameter list $function = Win32::API->new( 'mydll.dll', 'sum_integers', 'II', 'I', );