use Win32::API; my $function = Win32::API->new( 'theExe.exe, 'int foo( int a, int b )', ); $return = $function->Call(3, 2);